Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/tcp_ao/
H A Dself-connect.c6 static union tcp_addr local_addr; variable
11 if (inet_pton(TEST_FAMILY, addr_str, &local_addr) != 1) in __setup_lo_intf()
14 if (ip_addr_add(lo_intf, TEST_FAMILY, local_addr, prefix)) in __setup_lo_intf()
42 tcp_addr_to_sockaddr_in(&addr, &local_addr, htons(port)); in tcp_self_connect()
49 if (test_add_key(sk, DEFAULT_TEST_PASSWORD, local_addr, -1, 5, 7)) in tcp_self_connect()
51 if (test_add_key(sk, DEFAULT_TEST_PASSWORD, local_addr, -1, 7, 5)) in tcp_self_connect()
54 if (test_add_key(sk, DEFAULT_TEST_PASSWORD, local_addr, -1, 100, 100)) in tcp_self_connect()
126 local_addr, -1, 7, 5)) in tcp_self_connect()
129 local_addr, -1, 5, 7)) in tcp_self_connect()
133 local_addr, -1, 100, 100)) in tcp_self_connect()
[all …]
/linux/arch/um/drivers/
H A Ddaemon_user.c51 struct sockaddr_un *local_addr = pri->local_addr; in connect_to_switch() local
79 if (bind(fd, (struct sockaddr *) local_addr, sizeof(*local_addr)) < 0) { in connect_to_switch()
97 req.sock = *local_addr; in connect_to_switch()
143 pri->local_addr = new_addr(&name, sizeof(name)); in daemon_user_init()
147 kfree(pri->local_addr); in daemon_user_init()
148 pri->local_addr = NULL; in daemon_user_init()
174 kfree(pri->local_addr); in daemon_remove()
175 pri->local_addr = NULL; in daemon_remove()
H A Dvector_user.c316 struct sockaddr_un *local_addr = NULL, *remote_addr = NULL; in user_init_unix_fds() local
335 local_addr = uml_kmalloc(sizeof(struct sockaddr_un), UM_GFP_KERNEL); in user_init_unix_fds()
336 if (local_addr == NULL) { in user_init_unix_fds()
340 local_addr->sun_family = AF_UNIX; in user_init_unix_fds()
341 memcpy(local_addr->sun_path, src, strlen(src) + 1); in user_init_unix_fds()
361 if (local_addr != NULL) { in user_init_unix_fds()
362 if (bind(fd, (struct sockaddr *) local_addr, sizeof(struct sockaddr_un))) { in user_init_unix_fds()
H A Ddaemon.h18 void *local_addr; member
/linux/tools/testing/selftests/net/
H A Dreuseaddr_ports_exhausted.c56 struct sockaddr_in local_addr; in bind_port() local
57 int len = sizeof(local_addr); in bind_port()
69 local_addr.sin_family = AF_INET; in bind_port()
70 local_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in bind_port()
71 local_addr.sin_port = 0; in bind_port()
73 if (bind(fd, (struct sockaddr *)&local_addr, len) == -1) { in bind_port()
H A Dtest_bridge_backup_port.sh167 local local_addr=$1; shift
173 ip -n $ns address add $local_addr/32 dev lo
191 local $local_addr dstport 4789 nolearning external
201 local local_addr=192.0.2.33
207 setup_sw_common $ns $local_addr $remote_addr $veth_addr $gw_addr \
214 local local_addr=192.0.2.34
220 setup_sw_common $ns $local_addr $remote_addr $veth_addr $gw_addr \
H A Dtest_bridge_neigh_suppress.sh205 local local_addr=$1; shift
210 ip -n $ns address add $local_addr/32 dev lo
230 local $local_addr dstport 4789 nolearning external
247 local local_addr=192.0.2.33
252 setup_sw_common $ns $local_addr $remote_addr $veth_addr $gw_addr
258 local local_addr=192.0.2.34
263 setup_sw_common $ns $local_addr $remote_addr $veth_addr $gw_addr
H A Dtest_vxlan_mdb.sh210 local local_addr=$1; shift
223 ip -n $ns address add $local_addr dev lo
240 local $local_addr dstport 4789 external vnifilter
874 local local_addr=$1; shift
892 local $local_addr dstport 4789 external vnifilter
919 local local_addr=192.0.2.1
927 dump_common $ns1 $local_addr $remote_prefix $fn
933 local local_addr=192.0.2.1
941 dump_common $ns1 $local_addr $remote_prefix $fn
947 local local_addr=2001:db8:1::1
[all …]
H A Dnettest.c62 } local_addr; member
717 struct sockaddr_in6 local_addr, remote_addr; in show_sockstat() local
718 socklen_t alen = sizeof(local_addr); in show_sockstat()
724 sa = (struct sockaddr *) &local_addr; in show_sockstat()
780 addr = &args->local_addr; in convert_addr()
1347 if_addr = args->local_addr.in.s_addr; in msock_init()
1391 args->local_addr.in.s_addr, args->ifindex)) in msock_init()
1427 serv_addr.sin_addr = args->local_addr.in; in bind_socket()
1434 serv6_addr.sin6_addr = args->local_addr.in6; in bind_socket()
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.sh329 local local_addr="$6"
409 $extra_args $local_addr < "$sin" > "$sout" &
612 local local_addr
614 local_addr="::"
616 local_addr="0.0.0.0"
620 ${connect_addr} ${local_addr} "${extra_args}"
635 ${connect_addr} ${local_addr} "${extra_args}"
643 ${connect_addr} ${local_addr} "${extra_args}"
652 ${connect_addr} ${local_addr} "${extra_args}"
713 local local_addr
[all …]
H A Dmptcp_sockopt.sh158 local local_addr ip
160 local_addr="::"
163 local_addr="0.0.0.0"
175 ${local_addr} < "$sin" > "$sout" &
214 if [ $local_addr = "::" ];then
/linux/include/rdma/
H A Diw_portmap.h47 int iwpm_remove_mapping(struct sockaddr_storage *local_addr, u8 nl_client);
58 int iwpm_create_mapinfo(struct sockaddr_storage *local_addr,
61 int iwpm_remove_mapinfo(struct sockaddr_storage *local_addr,
H A Diw_cm.h26 struct sockaddr_storage local_addr; member
60 struct sockaddr_storage local_addr; /* local addr */ member
/linux/drivers/infiniband/core/
H A Diwcm.c440 iwpm_remove_mapinfo(&cm_id->local_addr, &cm_id->m_local_addr); in destroy_cm_id()
441 iwpm_remove_mapping(&cm_id->local_addr, RDMA_NL_IWCM); in destroy_cm_id()
521 cm_id->m_local_addr = cm_id->local_addr; in iw_cm_map()
532 pm_msg.loc_addr = cm_id->local_addr; in iw_cm_map()
552 return iwpm_create_mapinfo(&cm_id->local_addr, in iw_cm_map()
788 cm_id->m_local_addr = iw_event->local_addr; in cm_conn_req_handler()
790 cm_id->local_addr = listen_id_priv->id.local_addr; in cm_conn_req_handler()
800 &iw_event->local_addr, in cm_conn_req_handler()
801 &cm_id->local_addr); in cm_conn_req_handler()
802 iw_event->local_addr = cm_id->local_addr; in cm_conn_req_handler()
[all …]
/linux/net/vmw_vsock/
H A Dvmci_transport.c290 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_control_pkt()
296 return vmci_transport_alloc_send_control_pkt(&vsk->local_addr, in vmci_transport_send_control_pkt()
326 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_reset()
336 return vmci_transport_alloc_send_control_pkt(&vsk->local_addr, dst_ptr, in vmci_transport_send_reset()
494 pkt->dst_port == vpending->local_addr.svm_port) { in vmci_transport_get_pending()
761 vsk->local_addr.svm_cid = dst.svm_cid; in vmci_transport_recv_stream_cb()
823 if (vsk->local_addr.svm_cid == VMADDR_CID_HOST || in vmci_transport_handle_detach()
905 vsock_sk(sk)->local_addr.svm_cid = pkt->dg.dst.context; in vmci_transport_recv_pkt_work()
962 vsock_sk(pending)->local_addr.svm_cid = pkt->dg.dst.context; in vmci_transport_recv_listen()
1016 vsock_addr_init(&vpending->local_addr, pkt->dg.dst.context, in vmci_transport_recv_listen()
[all …]
H A Daf_vsock.c180 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr)
193 struct sockaddr_vm local_addr; in vsock_auto_bind()
195 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind()
197 vsock_addr_init(&local_addr, VMADDR_CID_ANY, VMADDR_PORT_ANY); in vsock_auto_bind()
198 return __vsock_bind(sk, &local_addr);
243 if (vsock_addr_equals_addr(addr, &vsk->local_addr)) in __vsock_find_bound_socket()
246 if (addr->svm_port == vsk->local_addr.svm_port && in __vsock_find_bound_socket()
247 (vsk->local_addr.svm_cid == VMADDR_CID_ANY || in __vsock_find_bound_socket()
263 dst->svm_port == vsk->local_addr.svm_port) { in __vsock_find_connected_socket()
281 &vsk->remote_addr, &vsk->local_addr); in vsock_insert_connected()
191 struct sockaddr_vm local_addr; vsock_auto_bind() local
[all...]
H A 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()
/linux/drivers/infiniband/hw/cxgb4/
H A 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()
1236 cxgb4_insert_tid(t, ep, tid, ep->com.local_addr.ss_family); in act_establish()
1327 memcpy(&event.local_addr, &ep->com.local_addr, in connect_reply_upcall()
1328 sizeof(ep->com.local_addr)); in connect_reply_upcall()
1369 memcpy(&event.local_addr, &ep->com.local_addr, in connect_request_upcall()
1370 sizeof(ep->com.local_addr)); in connect_request_upcall()
[all …]
H A 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/include/trace/events/
H A Dmctp.h38 __entry->laddr = key->local_addr;
59 __entry->laddr = key->local_addr;
/linux/include/uapi/linux/
H A Drds.h218 __be32 local_addr; member
231 struct in6_addr local_addr; member
368 __u64 local_addr; member
H A Dmctp.h84 mctp_eid_t local_addr; member
/linux/drivers/target/iscsi/cxgbit/
H A 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 …]
/linux/drivers/infiniband/hw/qedr/
H A 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()
558 &cm_id->local_addr, &cm_id->remote_addr); in qedr_iw_connect()
673 "Create Listener address: %pISpc\n", &cm_id->local_addr); in qedr_iw_create_listen()
689 cm_id->local_addr.ss_family == AF_INET) { in qedr_iw_create_listen()
/linux/drivers/infiniband/hw/erdma/
H A Derdma_qp.c60 struct sockaddr_storage local_addr, remote_addr; in erdma_modify_qp_state_to_rts() local
68 ret = getname_local(cep->sock, &local_addr); in erdma_modify_qp_state_to_rts()
89 req.sip = to_sockaddr_in(local_addr).sin_addr.s_addr; in erdma_modify_qp_state_to_rts()
91 req.sport = to_sockaddr_in(local_addr).sin_port; in erdma_modify_qp_state_to_rts()

12