Home
last modified time | relevance | path

Searched refs:sa_family (Results 1 – 25 of 149) sorted by relevance

123456

/Linux-v4.19/arch/arm/kernel/
Dsys_oabi-compat.c382 sa_family_t sa_family; in sys_oabi_bind() local
384 get_user(sa_family, &addr->sa_family) == 0 && in sys_oabi_bind()
385 sa_family == AF_UNIX) in sys_oabi_bind()
392 sa_family_t sa_family; in sys_oabi_connect() local
394 get_user(sa_family, &addr->sa_family) == 0 && in sys_oabi_connect()
395 sa_family == AF_UNIX) in sys_oabi_connect()
405 sa_family_t sa_family; in sys_oabi_sendto() local
407 get_user(sa_family, &addr->sa_family) == 0 && in sys_oabi_sendto()
408 sa_family == AF_UNIX) in sys_oabi_sendto()
417 sa_family_t sa_family; in sys_oabi_sendmsg() local
[all …]
/Linux-v4.19/include/linux/sunrpc/
Daddr.h25 switch (sap->sa_family) { in rpc_get_port()
37 switch (sap->sa_family) { in rpc_set_port()
123 if (sap1->sa_family == sap2->sa_family) { in rpc_cmp_addr()
124 switch (sap1->sa_family) { in rpc_cmp_addr()
160 switch (src->sa_family) { in rpc_copy_addr()
178 if (sa->sa_family != AF_INET6) in rpc_get_scope_id()
Dsvc_xprt.h165 switch (sa->sa_family) { in svc_addr_port()
177 switch (sa->sa_family) { in svc_addr_len()
202 switch (addr->sa_family) { in __svc_print_addr()
215 snprintf(buf, len, "unknown address type: %d", addr->sa_family); in __svc_print_addr()
/Linux-v4.19/include/uapi/linux/
Dif_pppox.h66 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
80 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
86 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
95 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
101 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
Dnfc.h266 sa_family_t sa_family; member
274 sa_family_t sa_family; member
/Linux-v4.19/net/sctp/
Dipv6.c117 if (addr->a.sa.sa_family == AF_INET6 && in sctp_inet6addr_event()
312 if ((laddr->a.sa.sa_family == AF_INET6) && in sctp_v6_get_dst()
336 laddr->a.sa.sa_family != AF_INET6 || in sctp_v6_get_dst()
513 if (addr->sa.sa_family == AF_INET) { in sctp_v6_to_sk_saddr()
527 if (addr->sa.sa_family == AF_INET) { in sctp_v6_to_sk_daddr()
568 addr->sa.sa_family = AF_INET6; in sctp_v6_to_addr()
578 if (addr1->sa.sa_family != addr2->sa.sa_family) { in __sctp_v6_cmp_addr()
579 if (addr1->sa.sa_family == AF_INET && in __sctp_v6_cmp_addr()
580 addr2->sa.sa_family == AF_INET6 && in __sctp_v6_cmp_addr()
586 if (addr2->sa.sa_family == AF_INET && in __sctp_v6_cmp_addr()
[all …]
Dbind_addr.c385 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_bind_addr_state()
455 if ((((AF_INET == addr->sa.sa_family) && in sctp_copy_one_addr()
457 (((AF_INET6 == addr->sa.sa_family) && in sctp_copy_one_addr()
474 if (addr->sa.sa_family != AF_UNSPEC) in sctp_is_any()
475 fam = addr->sa.sa_family; in sctp_is_any()
552 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_scope()
Dprotocol.c166 if (addr->a.sa.sa_family == AF_INET && in sctp_copy_local_addr_list()
169 if (addr->a.sa.sa_family == AF_INET6 && in sctp_copy_local_addr_list()
306 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_v4_cmp_addr()
495 AF_INET != laddr->a.sa.sa_family) in sctp_v4_get_dst()
633 if (addrw->a.sa.sa_family == AF_INET6) { in sctp_addr_wq_timeout_handler()
700 if (addrw->a.sa.sa_family != addr->a.sa.sa_family) in sctp_addr_wq_lookup()
702 if (addrw->a.sa.sa_family == AF_INET) { in sctp_addr_wq_lookup()
706 } else if (addrw->a.sa.sa_family == AF_INET6) { in sctp_addr_wq_lookup()
795 if (addr->a.sa.sa_family == AF_INET && in sctp_inetaddr_event()
845 switch (af->sa_family) { in sctp_register_af()
[all …]
Dproc.c118 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_seq_dump_local_addrs()
139 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_seq_dump_remote_addrs()
/Linux-v4.19/drivers/infiniband/core/
Daddr.c193 switch (addr->sa_family) { in rdma_addr_size()
249 switch (addr->sa_family) { in rdma_translate_ip()
354 const void *daddr = (dst_in->sa_family == AF_INET) ? in fetch_ha()
357 sa_family_t family = dst_in->sa_family; in fetch_ha()
491 if (src_in->sa_family == AF_INET) { in addr_resolve()
606 if (src_addr->sa_family != dst_addr->sa_family) { in rdma_resolve_ip()
613 src_in->sa_family = dst_addr->sa_family; in rdma_resolve_ip()
652 if (src_addr->sa_family != dst_addr->sa_family) in rdma_resolve_ip_route()
657 src_in->sa_family = dst_addr->sa_family; in rdma_resolve_ip_route()
Dcma.c593 if (addr->sa_family != AF_IB) { in cma_translate_addr()
1047 switch (addr->sa_family) { in cma_zero_addr()
1061 switch (addr->sa_family) { in cma_loopback_addr()
1083 if (src->sa_family != dst->sa_family) in cma_addr_cmp()
1086 switch (src->sa_family) { in cma_addr_cmp()
1103 switch (addr->sa_family) { in cma_port()
1242 sa_family_t sa_family, __be64 service_id) in cma_save_net_info() argument
1244 if (sa_family == AF_IB) { in cma_save_net_info()
1359 switch (daddr->sa_family) { in validate_net_dev()
1361 return saddr->sa_family == AF_INET && in validate_net_dev()
[all …]
/Linux-v4.19/tools/testing/selftests/net/
Dudpgso.c520 addr->sa_family == AF_INET ? 4 : 6, in run_one()
541 mss = addr->sa_family == AF_INET ? CONST_MSS_V4 : CONST_MSS_V6; in run_one()
569 tests = addr->sa_family == AF_INET ? testcases_v4 : testcases_v6; in run_all()
584 fdr = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
595 fdt = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
600 set_pmtu_discover(fdt, addr->sa_family == AF_INET); in run_test()
609 set_route_mtu(CONST_MTU_TEST, addr->sa_family == AF_INET); in run_test()
614 val = get_path_mtu(fdt, addr->sa_family == AF_INET); in run_test()
/Linux-v4.19/drivers/net/
Dvxlan.c98 if (a->sa.sa_family != b->sa.sa_family) in vxlan_addr_equal()
100 if (a->sa.sa_family == AF_INET6) in vxlan_addr_equal()
108 if (ipa->sa.sa_family == AF_INET6) in vxlan_addr_any()
116 if (ipa->sa.sa_family == AF_INET6) in vxlan_addr_multicast()
126 ip->sa.sa_family = AF_INET6; in vxlan_nla_get_addr()
130 ip->sa.sa_family = AF_INET; in vxlan_nla_get_addr()
140 if (ip->sa.sa_family == AF_INET6) in vxlan_nla_put_addr()
170 ip->sa.sa_family = AF_INET; in vxlan_nla_get_addr()
295 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
821 if (remote->sa.sa_family == AF_INET) { in vxlan_fdb_parse()
[all …]
/Linux-v4.19/net/ipv4/
Dudp_tunnel.c90 ti.sa_family = sk->sk_family; in udp_tunnel_push_rx_port()
108 ti.sa_family = sk->sk_family; in udp_tunnel_drop_rx_port()
124 ti.sa_family = sk->sk_family; in udp_tunnel_notify_add_rx_port()
148 ti.sa_family = sk->sk_family; in udp_tunnel_notify_del_rx_port()
Darp.c1008 dev = dev_getbyhwaddr_rcu(net, r->arp_ha.sa_family, in arp_req_set_public()
1054 if (r->arp_ha.sa_family != ARPHRD_FDDI && in arp_req_set()
1055 r->arp_ha.sa_family != ARPHRD_ETHER && in arp_req_set()
1056 r->arp_ha.sa_family != ARPHRD_IEEE802) in arp_req_set()
1061 if (r->arp_ha.sa_family != dev->type) in arp_req_set()
1108 r->arp_ha.sa_family = dev->type; in arp_req_get()
1198 if (r.arp_pa.sa_family != AF_INET) in arp_ioctl()
1215 if (!r.arp_ha.sa_family) in arp_ioctl()
1216 r.arp_ha.sa_family = dev->type; in arp_ioctl()
1218 if ((r.arp_flags & ATF_COM) && r.arp_ha.sa_family != dev->type) in arp_ioctl()
/Linux-v4.19/net/core/
Ddev_ioctl.c133 ifr->ifr_hwaddr.sa_family = dev->type; in dev_ifsioc_locked()
252 if (ifr->ifr_hwaddr.sa_family != dev->type) in dev_ifsioc()
270 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
278 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
Dutils.c408 if (addr->sa_family == AF_INET6) { in inet_addr_is_any()
416 } else if (addr->sa_family == AF_INET) { in inet_addr_is_any()
422 pr_warn("unexpected address family %u\n", addr->sa_family); in inet_addr_is_any()
/Linux-v4.19/net/nfc/
Dllcp_sock.c80 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_sock_bind()
81 addr->sa_family != AF_NFC) in llcp_sock_bind()
84 pr_debug("sk %p addr %p family %d\n", sk, addr, addr->sa_family); in llcp_sock_bind()
155 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_raw_sock_bind()
156 addr->sa_family != AF_NFC) in llcp_raw_sock_bind()
159 pr_debug("sk %p addr %p family %d\n", sk, addr, addr->sa_family); in llcp_raw_sock_bind()
519 llcp_addr->sa_family = AF_NFC; in llcp_sock_getname()
666 if (!addr || len < sizeof(*addr) || addr->sa_family != AF_NFC) in llcp_sock_connect()
860 sockaddr->sa_family = AF_NFC; in llcp_sock_recvmsg()
/Linux-v4.19/net/sunrpc/
Daddr.c130 switch (sap->sa_family) { in rpc_ntop()
274 switch (sap->sa_family) { in rpc_sockaddr2uaddr()
346 switch (sap->sa_family) { in rpc_uaddr2sockaddr()
/Linux-v4.19/net/wireless/
Dwext-spy.c92 address[i].sa_family = AF_UNIX; in iw_handler_get_spy()
174 threshold.addr.sa_family = ARPHRD_ETHER; in iw_send_thrspy_event()
Dwext-sme.c248 if (ap_addr->sa_family != ARPHRD_ETHER) in cfg80211_mgd_wext_siwap()
296 ap_addr->sa_family = ARPHRD_ETHER; in cfg80211_mgd_wext_giwap()
375 if (mlme->addr.sa_family != ARPHRD_ETHER) in cfg80211_wext_siwmlme()
/Linux-v4.19/fs/cifs/
Dfscache.c57 key.hdr.family = sa->sa_family; in cifs_fscache_get_client_cookie()
58 switch (sa->sa_family) { in cifs_fscache_get_client_cookie()
72 cifs_dbg(VFS, "Unknown network family '%d'\n", sa->sa_family); in cifs_fscache_get_client_cookie()
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dmlme_linux.c144 wrqu.addr.sa_family = ARPHRD_ETHER; in rtw_indicate_sta_assoc_event()
167 wrqu.addr.sa_family = ARPHRD_ETHER; in rtw_indicate_sta_disassoc_event()
/Linux-v4.19/net/rds/
Dbind.c176 if (uaddr->sa_family == AF_INET) { in rds_bind()
188 } else if (uaddr->sa_family == AF_INET6) { in rds_bind()
/Linux-v4.19/fs/nfs/
Dpnfs_nfs.c349 if (addr1->sa_family != addr2->sa_family) in same_sockaddr()
352 switch (addr1->sa_family) { in same_sockaddr()
379 __func__, addr1->sa_family); in same_sockaddr()

123456