Lines Matching refs:remote_addr

178 	vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
260 if (vsock_addr_equals_addr(src, &vsk->remote_addr) && in __vsock_find_connected_socket()
279 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
444 unsigned int remote_cid = vsk->remote_addr.svm_cid; in vsock_assign_transport()
457 vsk->remote_addr.svm_cid > VMADDR_CID_HOST) in vsock_assign_transport()
458 vsk->remote_addr.svm_flags |= VMADDR_FLAG_TO_HOST; in vsock_assign_transport()
460 remote_flags = vsk->remote_addr.svm_flags; in vsock_assign_transport()
754 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in __vsock_create()
848 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_sk_destruct()
951 vm_addr = &vsk->remote_addr; in vsock_getname()
1157 struct sockaddr_vm *remote_addr; in vsock_dgram_sendmsg() local
1182 &remote_addr) == 0) { in vsock_dgram_sendmsg()
1187 if (remote_addr->svm_cid == VMADDR_CID_ANY) in vsock_dgram_sendmsg()
1188 remote_addr->svm_cid = transport->get_local_cid(); in vsock_dgram_sendmsg()
1190 if (!vsock_addr_bound(remote_addr)) { in vsock_dgram_sendmsg()
1195 remote_addr = &vsk->remote_addr; in vsock_dgram_sendmsg()
1197 if (remote_addr->svm_cid == VMADDR_CID_ANY) in vsock_dgram_sendmsg()
1198 remote_addr->svm_cid = transport->get_local_cid(); in vsock_dgram_sendmsg()
1203 if (!vsock_addr_bound(&vsk->remote_addr)) { in vsock_dgram_sendmsg()
1212 if (!transport->dgram_allow(remote_addr->svm_cid, in vsock_dgram_sendmsg()
1213 remote_addr->svm_port)) { in vsock_dgram_sendmsg()
1218 err = transport->dgram_enqueue(vsk, remote_addr, msg, len); in vsock_dgram_sendmsg()
1231 struct sockaddr_vm *remote_addr; in vsock_dgram_connect() local
1236 err = vsock_addr_cast(addr, addr_len, &remote_addr); in vsock_dgram_connect()
1237 if (err == -EAFNOSUPPORT && remote_addr->svm_family == AF_UNSPEC) { in vsock_dgram_connect()
1239 vsock_addr_init(&vsk->remote_addr, VMADDR_CID_ANY, in vsock_dgram_connect()
1253 if (!vsk->transport->dgram_allow(remote_addr->svm_cid, in vsock_dgram_connect()
1254 remote_addr->svm_port)) { in vsock_dgram_connect()
1259 memcpy(&vsk->remote_addr, remote_addr, sizeof(vsk->remote_addr)); in vsock_dgram_connect()
1411 struct sockaddr_vm *remote_addr; in vsock_connect() local
1442 vsock_addr_cast(addr, addr_len, &remote_addr) != 0) { in vsock_connect()
1448 memcpy(&vsk->remote_addr, remote_addr, in vsock_connect()
1449 sizeof(vsk->remote_addr)); in vsock_connect()
1461 !transport->stream_allow(remote_addr->svm_cid, in vsock_connect()
1462 remote_addr->svm_port)) { in vsock_connect()
1921 if (!vsock_addr_bound(&vsk->remote_addr)) { in vsock_connectible_sendmsg()