Lines Matching refs:local_addr
172 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
185 struct sockaddr_vm local_addr; in vsock_auto_bind() local
187 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind()
189 vsock_addr_init(&local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_auto_bind()
190 return __vsock_bind(sk, &local_addr); in vsock_auto_bind()
235 if (vsock_addr_equals_addr(addr, &vsk->local_addr)) in __vsock_find_bound_socket()
238 if (addr->svm_port == vsk->local_addr.svm_port && in __vsock_find_bound_socket()
239 (vsk->local_addr.svm_cid == VMADDR_CID_ANY || in __vsock_find_bound_socket()
255 dst->svm_port == vsk->local_addr.svm_port) { in __vsock_find_connected_socket()
273 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
450 if (psk && vsk->local_addr.svm_cid > VMADDR_CID_HOST && in vsock_assign_transport()
665 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_connectible()
673 __vsock_insert_bound(vsock_bound_sockets(&vsk->local_addr), vsk); in __vsock_bind_connectible()
690 if (vsock_addr_bound(&vsk->local_addr)) in __vsock_bind()
748 vsock_addr_init(&vsk->local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in __vsock_create()
839 vsock_addr_init(&vsk->local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_sk_destruct()
944 vm_addr = &vsk->local_addr; in vsock_getname()
1560 if (!vsock_addr_bound(&vsk->local_addr)) { in vsock_listen()
1781 !vsock_addr_bound(&vsk->local_addr)) { in vsock_connectible_sendmsg()