Lines Matching refs:local_addr
171 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
184 struct sockaddr_vm local_addr; in vsock_auto_bind() local
186 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind()
188 vsock_addr_init(&local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_auto_bind()
189 return __vsock_bind(sk, &local_addr); in vsock_auto_bind()
234 if (vsock_addr_equals_addr(addr, &vsk->local_addr)) in __vsock_find_bound_socket()
237 if (addr->svm_port == vsk->local_addr.svm_port && in __vsock_find_bound_socket()
238 (vsk->local_addr.svm_cid == VMADDR_CID_ANY || in __vsock_find_bound_socket()
254 dst->svm_port == vsk->local_addr.svm_port) { in __vsock_find_connected_socket()
272 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
444 if (psk && vsk->local_addr.svm_cid > VMADDR_CID_HOST && in vsock_assign_transport()
659 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_connectible()
667 __vsock_insert_bound(vsock_bound_sockets(&vsk->local_addr), vsk); in __vsock_bind_connectible()
684 if (vsock_addr_bound(&vsk->local_addr)) in __vsock_bind()
742 vsock_addr_init(&vsk->local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in __vsock_create()
833 vsock_addr_init(&vsk->local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_sk_destruct()
928 vm_addr = &vsk->local_addr; in vsock_getname()
1534 if (!vsock_addr_bound(&vsk->local_addr)) { in vsock_listen()
1755 !vsock_addr_bound(&vsk->local_addr)) { in vsock_connectible_sendmsg()