Lines Matching refs:local_addr
179 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
192 struct sockaddr_vm local_addr; in vsock_auto_bind() local
194 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind()
196 vsock_addr_init(&local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_auto_bind()
197 return __vsock_bind(sk, &local_addr); in vsock_auto_bind()
242 if (vsock_addr_equals_addr(addr, &vsk->local_addr)) in __vsock_find_bound_socket()
245 if (addr->svm_port == vsk->local_addr.svm_port && in __vsock_find_bound_socket()
246 (vsk->local_addr.svm_cid == VMADDR_CID_ANY || in __vsock_find_bound_socket()
262 dst->svm_port == vsk->local_addr.svm_port) { in __vsock_find_connected_socket()
280 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
457 if (psk && vsk->local_addr.svm_cid > VMADDR_CID_HOST && in vsock_assign_transport()
680 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_connectible()
688 __vsock_insert_bound(vsock_bound_sockets(&vsk->local_addr), vsk); in __vsock_bind_connectible()
705 if (vsock_addr_bound(&vsk->local_addr)) in __vsock_bind()
763 vsock_addr_init(&vsk->local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in __vsock_create()
852 vsock_addr_init(&vsk->local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_sk_destruct()
980 vm_addr = &vsk->local_addr; in vsock_getname()
1633 if (!vsock_addr_bound(&vsk->local_addr)) { in vsock_listen()
1854 !vsock_addr_bound(&vsk->local_addr)) { in vsock_connectible_sendmsg()