• Home
  • Raw
  • Download

Lines Matching refs:remote_addr

162 	vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
223 if (vsock_addr_equals_addr(src, &vsk->remote_addr) && in __vsock_find_connected_socket()
252 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
594 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in __vsock_create()
680 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_sk_destruct()
755 vm_addr = &vsk->remote_addr; in vsock_getname()
947 struct sockaddr_vm *remote_addr; in vsock_dgram_sendmsg() local
974 &remote_addr) == 0) { in vsock_dgram_sendmsg()
979 if (remote_addr->svm_cid == VMADDR_CID_ANY) in vsock_dgram_sendmsg()
980 remote_addr->svm_cid = transport->get_local_cid(); in vsock_dgram_sendmsg()
982 if (!vsock_addr_bound(remote_addr)) { in vsock_dgram_sendmsg()
987 remote_addr = &vsk->remote_addr; in vsock_dgram_sendmsg()
989 if (remote_addr->svm_cid == VMADDR_CID_ANY) in vsock_dgram_sendmsg()
990 remote_addr->svm_cid = transport->get_local_cid(); in vsock_dgram_sendmsg()
995 if (!vsock_addr_bound(&vsk->remote_addr)) { in vsock_dgram_sendmsg()
1004 if (!transport->dgram_allow(remote_addr->svm_cid, in vsock_dgram_sendmsg()
1005 remote_addr->svm_port)) { in vsock_dgram_sendmsg()
1010 err = transport->dgram_enqueue(vsk, remote_addr, msg->msg_iov, len); in vsock_dgram_sendmsg()
1023 struct sockaddr_vm *remote_addr; in vsock_dgram_connect() local
1028 err = vsock_addr_cast(addr, addr_len, &remote_addr); in vsock_dgram_connect()
1029 if (err == -EAFNOSUPPORT && remote_addr->svm_family == AF_UNSPEC) { in vsock_dgram_connect()
1031 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, in vsock_dgram_connect()
1051 if (!transport->dgram_allow(remote_addr->svm_cid, in vsock_dgram_connect()
1052 remote_addr->svm_port)) { in vsock_dgram_connect()
1057 memcpy(&vsk->remote_addr, remote_addr, sizeof(vsk->remote_addr)); in vsock_dgram_connect()
1119 struct sockaddr_vm *remote_addr; in vsock_stream_connect() local
1148 vsock_addr_cast(addr, addr_len, &remote_addr) != 0) { in vsock_stream_connect()
1156 if (!transport->stream_allow(remote_addr->svm_cid, in vsock_stream_connect()
1157 remote_addr->svm_port)) { in vsock_stream_connect()
1163 memcpy(&vsk->remote_addr, remote_addr, in vsock_stream_connect()
1164 sizeof(vsk->remote_addr)); in vsock_stream_connect()
1557 if (!vsock_addr_bound(&vsk->remote_addr)) { in vsock_stream_sendmsg()