Lines Matching refs:remote_addr

171 	vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
253 if (vsock_addr_equals_addr(src, &vsk->remote_addr) && in __vsock_find_connected_socket()
272 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
432 unsigned int remote_cid = vsk->remote_addr.svm_cid; in vsock_assign_transport()
445 vsk->remote_addr.svm_cid > VMADDR_CID_HOST) in vsock_assign_transport()
446 vsk->remote_addr.svm_flags |= VMADDR_FLAG_TO_HOST; in vsock_assign_transport()
448 remote_flags = vsk->remote_addr.svm_flags; in vsock_assign_transport()
743 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in __vsock_create()
834 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_sk_destruct()
926 vm_addr = &vsk->remote_addr; in vsock_getname()
1124 struct sockaddr_vm *remote_addr; in vsock_dgram_sendmsg() local
1149 &remote_addr) == 0) { in vsock_dgram_sendmsg()
1154 if (remote_addr->svm_cid == VMADDR_CID_ANY) in vsock_dgram_sendmsg()
1155 remote_addr->svm_cid = transport->get_local_cid(); in vsock_dgram_sendmsg()
1157 if (!vsock_addr_bound(remote_addr)) { in vsock_dgram_sendmsg()
1162 remote_addr = &vsk->remote_addr; in vsock_dgram_sendmsg()
1164 if (remote_addr->svm_cid == VMADDR_CID_ANY) in vsock_dgram_sendmsg()
1165 remote_addr->svm_cid = transport->get_local_cid(); in vsock_dgram_sendmsg()
1170 if (!vsock_addr_bound(&vsk->remote_addr)) { in vsock_dgram_sendmsg()
1179 if (!transport->dgram_allow(remote_addr->svm_cid, in vsock_dgram_sendmsg()
1180 remote_addr->svm_port)) { in vsock_dgram_sendmsg()
1185 err = transport->dgram_enqueue(vsk, remote_addr, msg, len); in vsock_dgram_sendmsg()
1198 struct sockaddr_vm *remote_addr; in vsock_dgram_connect() local
1203 err = vsock_addr_cast(addr, addr_len, &remote_addr); in vsock_dgram_connect()
1204 if (err == -EAFNOSUPPORT && remote_addr->svm_family == AF_UNSPEC) { in vsock_dgram_connect()
1206 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, in vsock_dgram_connect()
1220 if (!vsk->transport->dgram_allow(remote_addr->svm_cid, in vsock_dgram_connect()
1221 remote_addr->svm_port)) { in vsock_dgram_connect()
1226 memcpy(&vsk->remote_addr, remote_addr, sizeof(vsk->remote_addr)); in vsock_dgram_connect()
1299 struct sockaddr_vm *remote_addr; in vsock_connect() local
1330 vsock_addr_cast(addr, addr_len, &remote_addr) != 0) { in vsock_connect()
1336 memcpy(&vsk->remote_addr, remote_addr, in vsock_connect()
1337 sizeof(vsk->remote_addr)); in vsock_connect()
1349 !transport->stream_allow(remote_addr->svm_cid, in vsock_connect()
1350 remote_addr->svm_port)) { in vsock_connect()
1760 if (!vsock_addr_bound(&vsk->remote_addr)) { in vsock_connectible_sendmsg()