Home
last modified time | relevance | path

Searched refs:local_addr (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.4/arch/um/drivers/
Ddaemon_user.c50 struct sockaddr_un *local_addr = pri->local_addr; in connect_to_switch() local
78 if (bind(fd, (struct sockaddr *) local_addr, sizeof(*local_addr)) < 0) { in connect_to_switch()
96 req.sock = *local_addr; in connect_to_switch()
142 pri->local_addr = new_addr(&name, sizeof(name)); in daemon_user_init()
146 kfree(pri->local_addr); in daemon_user_init()
147 pri->local_addr = NULL; in daemon_user_init()
173 kfree(pri->local_addr); in daemon_remove()
174 pri->local_addr = NULL; in daemon_remove()
Dvector_user.c279 struct sockaddr_un *local_addr = NULL, *remote_addr = NULL; in user_init_unix_fds() local
298 local_addr = uml_kmalloc(sizeof(struct sockaddr_un), UM_GFP_KERNEL); in user_init_unix_fds()
299 if (local_addr == NULL) { in user_init_unix_fds()
303 local_addr->sun_family = AF_UNIX; in user_init_unix_fds()
304 memcpy(local_addr->sun_path, src, strlen(src) + 1); in user_init_unix_fds()
324 if (local_addr != NULL) { in user_init_unix_fds()
325 if (bind(fd, (struct sockaddr *) local_addr, sizeof(struct sockaddr_un))) { in user_init_unix_fds()
Ddaemon.h18 void *local_addr; member
Ddaemon_kern.c35 dpri->local_addr = NULL; in daemon_init()
/Linux-v5.4/include/rdma/
Diw_portmap.h73 int iwpm_remove_mapping(struct sockaddr_storage *local_addr, u8 nl_client);
84 int iwpm_create_mapinfo(struct sockaddr_storage *local_addr,
87 int iwpm_remove_mapinfo(struct sockaddr_storage *local_addr,
Diw_cm.h52 struct sockaddr_storage local_addr; member
86 struct sockaddr_storage local_addr; /* local addr */ member
/Linux-v5.4/drivers/infiniband/core/
Diwcm.c438 iwpm_remove_mapinfo(&cm_id->local_addr, &cm_id->m_local_addr); in destroy_cm_id()
439 iwpm_remove_mapping(&cm_id->local_addr, RDMA_NL_IWCM); in destroy_cm_id()
518 cm_id->m_local_addr = cm_id->local_addr; in iw_cm_map()
529 pm_msg.loc_addr = cm_id->local_addr; in iw_cm_map()
549 return iwpm_create_mapinfo(&cm_id->local_addr, in iw_cm_map()
785 cm_id->m_local_addr = iw_event->local_addr; in cm_conn_req_handler()
787 cm_id->local_addr = listen_id_priv->id.local_addr; in cm_conn_req_handler()
797 &iw_event->local_addr, in cm_conn_req_handler()
798 &cm_id->local_addr); in cm_conn_req_handler()
799 iw_event->local_addr = cm_id->local_addr; in cm_conn_req_handler()
[all …]
Diwpm_msg.c326 int iwpm_remove_mapping(struct sockaddr_storage *local_addr, u8 nl_client) in iwpm_remove_mapping() argument
358 local_addr, IWPM_NLA_MANAGE_ADDR); in iwpm_remove_mapping()
371 iwpm_print_sockaddr(local_addr, in iwpm_remove_mapping()
/Linux-v5.4/net/vmw_vsock/
Daf_vsock.c170 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
183 struct sockaddr_vm local_addr; in vsock_auto_bind() local
185 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind()
187 vsock_addr_init(&local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_auto_bind()
188 return __vsock_bind(sk, &local_addr); in vsock_auto_bind()
234 if (addr->svm_port == vsk->local_addr.svm_port) in __vsock_find_bound_socket()
248 dst->svm_port == vsk->local_addr.svm_port) { in __vsock_find_connected_socket()
266 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
516 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_stream()
523 __vsock_insert_bound(vsock_bound_sockets(&vsk->local_addr), vsk); in __vsock_bind_stream()
[all …]
Dvmci_transport.c296 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_control_pkt()
302 return vmci_transport_alloc_send_control_pkt(&vsk->local_addr, in vmci_transport_send_control_pkt()
332 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_reset()
342 return vmci_transport_alloc_send_control_pkt(&vsk->local_addr, dst_ptr, in vmci_transport_send_reset()
500 pkt->dst_port == vpending->local_addr.svm_port) { in vmci_transport_get_pending()
768 vsk->local_addr.svm_cid = dst.svm_cid; in vmci_transport_recv_stream_cb()
830 if (vsk->local_addr.svm_cid == VMADDR_CID_HOST || in vmci_transport_handle_detach()
911 vsock_sk(sk)->local_addr.svm_cid = pkt->dg.dst.context; in vmci_transport_recv_pkt_work()
970 vsock_sk(pending)->local_addr.svm_cid = pkt->dg.dst.context; in vmci_transport_recv_listen()
1025 vsock_addr_init(&vpending->local_addr, pkt->dg.dst.context, in vmci_transport_recv_listen()
[all …]
Ddiag.c37 rep->vdiag_src_cid = vsk->local_addr.svm_cid; in sk_diag_fill()
38 rep->vdiag_src_port = vsk->local_addr.svm_port; in sk_diag_fill()
Dhyperv_transport.c431 hvs_addr_init(&vnew->local_addr, if_type); in hvs_open_connection()
432 hvs_remote_addr_init(&vnew->remote_addr, &vnew->local_addr); in hvs_open_connection()
483 vm.svm_port = vsk->local_addr.svm_port; in hvs_connect()
/Linux-v5.4/drivers/infiniband/hw/cxgb4/
Dcm.c398 &ep->com.local_addr; in _c4iw_free_ep()
406 ep->com.local_addr.ss_family); in _c4iw_free_ep()
557 (struct sockaddr_in6 *)&ep->com.local_addr; in act_open_req_arp_failure()
728 &ep->com.local_addr; in send_connect()
732 &ep->com.local_addr; in send_connect()
1234 cxgb4_insert_tid(t, ep, tid, ep->com.local_addr.ss_family); in act_establish()
1325 memcpy(&event.local_addr, &ep->com.local_addr, in connect_reply_upcall()
1326 sizeof(ep->com.local_addr)); in connect_reply_upcall()
1367 memcpy(&event.local_addr, &ep->com.local_addr, in connect_request_upcall()
1368 sizeof(ep->com.local_addr)); in connect_request_upcall()
[all …]
Ddevice.c215 *m_lsin = (struct sockaddr_in *)&ep->com.local_addr; in set_ep_sin_addrs()
218 *lsin = (struct sockaddr_in *)&id->local_addr; in set_ep_sin_addrs()
234 *m_lsin6 = (struct sockaddr_in6 *)&ep->com.local_addr; in set_ep_sin6_addrs()
237 *lsin6 = (struct sockaddr_in6 *)&id->local_addr; in set_ep_sin6_addrs()
260 if (ep->com.local_addr.ss_family == AF_INET) { in dump_qp()
567 if (ep->com.local_addr.ss_family == AF_INET) { in dump_ep()
625 if (ep->com.local_addr.ss_family == AF_INET) { in dump_listen_ep()
627 &ep->com.cm_id->local_addr; in dump_listen_ep()
640 &ep->com.cm_id->local_addr; in dump_listen_ep()
/Linux-v5.4/include/uapi/linux/
Drds.h216 __be32 local_addr; member
229 struct in6_addr local_addr; member
366 __u64 local_addr; member
/Linux-v5.4/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c148 &cnp->com.local_addr; in cxgbit_create_server6()
200 &cnp->com.local_addr; in cxgbit_create_server4()
292 struct sockaddr_storage *sockaddr = &cnp->com.local_addr; in cxgbit_find_np_cdev()
320 struct sockaddr_storage *sockaddr = &cnp->com.local_addr; in cxgbit_inaddr_any()
346 int ss_family = cnp->com.local_addr.ss_family; in __cxgbit_setup_cdev_np()
446 memcpy(&cnp->com.local_addr, &np->np_sockaddr, in cxgbit_setup_np()
447 sizeof(cnp->com.local_addr)); in cxgbit_setup_np()
473 conn->local_sockaddr = csk->com.local_addr; in cxgbit_set_conn_info()
553 sin6 = (struct sockaddr_in6 *)&cnp->com.local_addr; in __cxgbit_free_cdev_np()
560 cnp->com.local_addr.ss_family); in __cxgbit_free_cdev_np()
[all …]
Dcxgbit_main.c544 if (csk->com.local_addr.ss_family == AF_INET6) { in cxgbit_update_dcb_priority()
547 sock_in6 = (struct sockaddr_in6 *)&csk->com.local_addr; in cxgbit_update_dcb_priority()
552 sock_in = (struct sockaddr_in *)&csk->com.local_addr; in cxgbit_update_dcb_priority()
/Linux-v5.4/drivers/infiniband/hw/cxgb3/
Diwch_cm.c459 req->local_port = ep->com.local_addr.sin_port; in send_connect()
461 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in send_connect()
721 memcpy(&event.local_addr, &ep->com.local_addr, in connect_reply_upcall()
722 sizeof(ep->com.local_addr)); in connect_reply_upcall()
749 memcpy(&event.local_addr, &ep->com.local_addr, in connect_request_upcall()
750 sizeof(ep->com.local_addr)); in connect_request_upcall()
752 sizeof(ep->com.local_addr)); in connect_request_upcall()
1209 req->local_port = ep->com.local_addr.sin_port; in listen_start()
1210 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in listen_start()
1388 child_ep->com.local_addr.sin_family = AF_INET; in pass_accept_req()
[all …]
Diwch_cm.h161 struct sockaddr_in local_addr; member
/Linux-v5.4/tools/testing/selftests/net/
Dnettest.c49 } local_addr; member
547 struct sockaddr_in6 local_addr, remote_addr; in show_sockstat() local
548 socklen_t alen = sizeof(local_addr); in show_sockstat()
554 sa = (struct sockaddr *) &local_addr; in show_sockstat()
1018 if_addr = args->local_addr.in.s_addr; in msock_init()
1051 args->local_addr.in.s_addr, args->ifindex)) in msock_init()
1087 serv_addr.sin_addr = args->local_addr.in; in bind_socket()
1094 serv6_addr.sin6_addr = args->local_addr.in6; in bind_socket()
1428 addr = &args->local_addr; in convert_addr()
/Linux-v5.4/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c46 struct sockaddr_in *laddr = (struct sockaddr_in *)&event->local_addr; in qedr_fill_sockaddr4()
63 struct sockaddr_in6 *laddr6 = (struct sockaddr_in6 *)&event->local_addr; in qedr_fill_sockaddr6()
509 &cm_id->local_addr, &cm_id->remote_addr); in qedr_iw_connect()
611 "Create Listener address: %pISpc\n", &cm_id->local_addr); in qedr_iw_create_listen()
627 cm_id->local_addr.ss_family == AF_INET) { in qedr_iw_create_listen()
/Linux-v5.4/drivers/block/
Dumem.h113 __le64 local_addr; member
/Linux-v5.4/drivers/net/ethernet/sfc/
Dsiena_sriov.c1083 struct efx_local_addr *local_addr; in efx_siena_sriov_peer_work() local
1117 list_for_each_entry(local_addr, &nic_data->local_addr_list, link) { in efx_siena_sriov_peer_work()
1118 ether_addr_copy(peer->mac_addr, local_addr->addr); in efx_siena_sriov_peer_work()
1172 struct efx_local_addr *local_addr; in efx_siena_sriov_free_local() local
1176 local_addr = list_first_entry(&nic_data->local_addr_list, in efx_siena_sriov_free_local()
1178 list_del(&local_addr->link); in efx_siena_sriov_free_local()
1179 kfree(local_addr); in efx_siena_sriov_free_local()
/Linux-v5.4/include/net/
Daf_vsock.h30 struct sockaddr_vm local_addr; member
/Linux-v5.4/net/rds/
Drdma.c836 if (args->local_addr & 0x7) { in rds_cmsg_atomic()
841 ret = rds_pin_pages(args->local_addr, 1, &page, 1); in rds_cmsg_atomic()
846 sg_set_page(rm->atomic.op_sg, page, 8, offset_in_page(args->local_addr)); in rds_cmsg_atomic()

12