Home
last modified time | relevance | path

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

1234567

/linux-6.3-rc2/include/linux/sunrpc/
A 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()
A Dsvc_xprt.h177 switch (sa->sa_family) { in svc_addr_port()
189 switch (sa->sa_family) { in svc_addr_len()
214 switch (addr->sa_family) { in __svc_print_addr()
227 snprintf(buf, len, "unknown address type: %d", addr->sa_family); in __svc_print_addr()
/linux-6.3-rc2/arch/arm/kernel/
A Dsys_oabi-compat.c430 sa_family_t sa_family; in sys_oabi_bind() local
432 get_user(sa_family, &addr->sa_family) == 0 && in sys_oabi_bind()
433 sa_family == AF_UNIX) in sys_oabi_bind()
440 sa_family_t sa_family; in sys_oabi_connect() local
442 get_user(sa_family, &addr->sa_family) == 0 && in sys_oabi_connect()
443 sa_family == AF_UNIX) in sys_oabi_connect()
453 sa_family_t sa_family; in sys_oabi_sendto() local
455 get_user(sa_family, &addr->sa_family) == 0 && in sys_oabi_sendto()
456 sa_family == AF_UNIX) in sys_oabi_sendto()
465 sa_family_t sa_family; in sys_oabi_sendmsg() local
[all …]
/linux-6.3-rc2/include/uapi/linux/
A 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
A Dnfc.h266 __kernel_sa_family_t sa_family; member
274 __kernel_sa_family_t sa_family; member
/linux-6.3-rc2/net/sctp/
A Dipv6.c556 if (addr->sa.sa_family == AF_INET) { in sctp_v6_to_sk_saddr()
570 if (addr->sa.sa_family == AF_INET) { in sctp_v6_to_sk_daddr()
616 addr->sa.sa_family = AF_INET6; in sctp_v6_to_addr()
626 if (addr1->sa.sa_family != addr2->sa.sa_family) { in __sctp_v6_cmp_addr()
825 if (addr->sa.sa_family == AF_INET) in sctp_v6_addr_to_user()
833 if (addr->sa.sa_family == AF_INET) { in sctp_v6_addr_to_user()
883 if (paddr->sa.sa_family == AF_INET) { in sctp_inet6_event_msgname()
973 if (addr1->sa.sa_family == AF_INET && addr2->sa.sa_family == AF_INET) in sctp_inet6_cmp_addr()
987 if (addr->sa.sa_family != AF_INET6) in sctp_inet6_bind_verify()
1022 if (addr->sa.sa_family != AF_INET6) in sctp_inet6_send_verify()
[all …]
A Dbind_addr.c406 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_bind_addr_state()
472 if ((((AF_INET == addr->sa.sa_family) && in sctp_copy_one_addr()
475 (((AF_INET6 == addr->sa.sa_family) && in sctp_copy_one_addr()
492 if (addr->sa.sa_family != AF_UNSPEC) in sctp_is_any()
493 fam = addr->sa.sa_family; in sctp_is_any()
570 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_scope()
A Dprotocol.c150 if (addr->a.sa.sa_family == AF_INET && in sctp_copy_local_addr_list()
154 if (addr->a.sa.sa_family == AF_INET6 && in sctp_copy_local_addr_list()
300 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_v4_cmp_addr()
499 AF_INET != laddr->a.sa.sa_family) in sctp_v4_get_dst()
647 if (addrw->a.sa.sa_family == AF_INET6) { in sctp_addr_wq_timeout_handler()
714 if (addrw->a.sa.sa_family != addr->a.sa.sa_family) in sctp_addr_wq_lookup()
716 if (addrw->a.sa.sa_family == AF_INET) { in sctp_addr_wq_lookup()
808 if (addr->a.sa.sa_family == AF_INET && in sctp_inetaddr_event()
927 switch (af->sa_family) { in sctp_register_af()
1017 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_inet_cmp_addr()
[all …]
/linux-6.3-rc2/drivers/net/wireguard/
A Dsocket.c174 if (peer->endpoint.addr.sa_family == AF_INET) in wg_socket_send_skb_to_peer()
177 else if (peer->endpoint.addr.sa_family == AF_INET6) in wg_socket_send_skb_to_peer()
224 if (endpoint.addr.sa_family == AF_INET) in wg_socket_send_buffer_as_reply_to_skb()
226 else if (endpoint.addr.sa_family == AF_INET6) in wg_socket_send_buffer_as_reply_to_skb()
260 return (a->addr.sa_family == AF_INET && b->addr.sa_family == AF_INET && in endpoint_eq()
264 (a->addr.sa_family == AF_INET6 && in endpoint_eq()
265 b->addr.sa_family == AF_INET6 && in endpoint_eq()
270 unlikely(!a->addr.sa_family && !b->addr.sa_family); in endpoint_eq()
284 if (endpoint->addr.sa_family == AF_INET) { in wg_socket_set_peer_endpoint()
288 } else if (IS_ENABLED(CONFIG_IPV6) && endpoint->addr.sa_family == AF_INET6) { in wg_socket_set_peer_endpoint()
/linux-6.3-rc2/tools/perf/trace/beauty/
A Dsockaddr.c54 …(&strarray__socket_families, family, sizeof(family), "%d", arg->show_string_prefix, sa->sa_family); in syscall_arg__scnprintf_augmented_sockaddr()
57 if (sa->sa_family < ARRAY_SIZE(af_scnprintfs) && af_scnprintfs[sa->sa_family]) in syscall_arg__scnprintf_augmented_sockaddr()
58 printed += af_scnprintfs[sa->sa_family](sa, bf + printed, size - printed); in syscall_arg__scnprintf_augmented_sockaddr()
/linux-6.3-rc2/drivers/infiniband/core/
A Daddr.c197 switch (addr->sa_family) { in rdma_addr_size()
251 switch (src_in->sa_family) { in rdma_find_ndev_for_src_ip_rcu()
370 const void *daddr = (dst_in->sa_family == AF_INET) ? in fetch_ha()
373 sa_family_t family = dst_in->sa_family; in fetch_ha()
491 if (has_gateway(dst, dst_in->sa_family) && in copy_src_l2_addr()
493 dev_addr->network = dst_in->sa_family == AF_INET ? in copy_src_l2_addr()
587 if (src_in->sa_family == AF_INET) { in addr_resolve()
607 if (src_in->sa_family == AF_INET) in addr_resolve()
681 if (src_addr->sa_family != dst_addr->sa_family) { in rdma_resolve_ip()
688 src_in->sa_family = dst_addr->sa_family; in rdma_resolve_ip()
[all …]
A Dcma.c479 if (sa->sa_family != sb->sa_family) in compare_netdev_and_ip()
480 return sa->sa_family - sb->sa_family; in compare_netdev_and_ip()
1286 switch (addr->sa_family) { in cma_zero_addr()
1300 switch (addr->sa_family) { in cma_loopback_addr()
1322 if (src->sa_family != dst->sa_family) in cma_addr_cmp()
1325 switch (src->sa_family) { in cma_addr_cmp()
1355 switch (addr->sa_family) { in cma_port()
1496 if (sa_family == AF_IB) { in cma_save_net_info()
3763 (addr->sa_family != cur_addr->sa_family)) in cma_check_port()
3963 if (addr->sa_family != AF_INET && addr->sa_family != AF_INET6 && in rdma_bind_addr_dst()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Dudpgso.c512 addr->sa_family == AF_INET ? 4 : 6, in run_one()
533 mss = addr->sa_family == AF_INET ? CONST_MSS_V4 : CONST_MSS_V6; in run_one()
561 tests = addr->sa_family == AF_INET ? testcases_v4 : testcases_v6; in run_all()
576 fdr = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
587 fdt = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
592 set_pmtu_discover(fdt, addr->sa_family == AF_INET); in run_test()
601 set_route_mtu(CONST_MTU_TEST, addr->sa_family == AF_INET); in run_test()
606 val = get_path_mtu(fdt, addr->sa_family == AF_INET); in run_test()
/linux-6.3-rc2/net/ipv4/
A Dudp_tunnel_core.c92 ti.sa_family = sk->sk_family; in udp_tunnel_push_rx_port()
106 ti.sa_family = sk->sk_family; in udp_tunnel_drop_rx_port()
122 ti.sa_family = sk->sk_family; in udp_tunnel_notify_add_rx_port()
142 ti.sa_family = sk->sk_family; in udp_tunnel_notify_del_rx_port()
A Darp.c1031 dev = dev_getbyhwaddr_rcu(net, r->arp_ha.sa_family, in arp_req_set_public()
1077 if (r->arp_ha.sa_family != ARPHRD_FDDI && in arp_req_set()
1078 r->arp_ha.sa_family != ARPHRD_ETHER && in arp_req_set()
1079 r->arp_ha.sa_family != ARPHRD_IEEE802) in arp_req_set()
1084 if (r->arp_ha.sa_family != dev->type) in arp_req_set()
1131 r->arp_ha.sa_family = dev->type; in arp_req_get()
1226 if (r.arp_pa.sa_family != AF_INET) in arp_ioctl()
1243 if (!r.arp_ha.sa_family) in arp_ioctl()
1244 r.arp_ha.sa_family = dev->type; in arp_ioctl()
1246 if ((r.arp_flags & ATF_COM) && r.arp_ha.sa_family != dev->type) in arp_ioctl()
/linux-6.3-rc2/drivers/net/vxlan/
A Dvxlan_private.h80 if (a->sa.sa_family != b->sa.sa_family) in vxlan_addr_equal()
82 if (a->sa.sa_family == AF_INET6) in vxlan_addr_equal()
A Dvxlan_core.c79 ip->sa.sa_family = AF_INET6; in vxlan_nla_get_addr()
83 ip->sa.sa_family = AF_INET; in vxlan_nla_get_addr()
93 if (ip->sa.sa_family == AF_INET6) in vxlan_nla_put_addr()
107 ip->sa.sa_family = AF_INET; in vxlan_nla_get_addr()
1152 ip->sa.sa_family = AF_INET; in vxlan_fdb_parse()
1156 ip->sa.sa_family = AF_INET6; in vxlan_fdb_parse()
1245 if (vxlan->default_dst.remote_ip.sa.sa_family != ip.sa.sa_family) in vxlan_fdb_add()
3553 if (!conf->remote_ip.sa.sa_family && !conf->saddr.sa.sa_family) { in vxlan_config_validate()
3558 conf->remote_ip.sa.sa_family = conf->saddr.sa.sa_family; in vxlan_config_validate()
3560 conf->saddr.sa.sa_family = conf->remote_ip.sa.sa_family; in vxlan_config_validate()
[all …]
A Dvxlan_multicast.c25 if (ip->sa.sa_family == AF_INET) { in vxlan_igmp_join()
59 if (ip->sa.sa_family == AF_INET) { in vxlan_igmp_leave()
135 unsigned short family = dev->default_dst.remote_ip.sa.sa_family; in vxlan_group_used()
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_tcp_check_syncookie_user.c25 fd = socket(addr->sa_family, SOCK_STREAM, 0); in start_server()
31 if (addr->sa_family == AF_INET6) { in start_server()
62 fd = socket(addr->sa_family, SOCK_STREAM, 0); in connect_to_server()
/linux-6.3-rc2/net/rds/
A Dbind.c176 if (addr_len < offsetofend(struct sockaddr, sa_family)) in rds_bind()
178 if (uaddr->sa_family == AF_INET) { in rds_bind()
190 } else if (uaddr->sa_family == AF_INET6) { in rds_bind()
/linux-6.3-rc2/net/nfc/
A Dllcp_sock.c68 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_sock_bind()
69 addr->sa_family != AF_NFC) in llcp_sock_bind()
72 pr_debug("sk %p addr %p family %d\n", sk, addr, addr->sa_family); in llcp_sock_bind()
159 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_raw_sock_bind()
160 addr->sa_family != AF_NFC) in llcp_raw_sock_bind()
163 pr_debug("sk %p addr %p family %d\n", sk, addr, addr->sa_family); in llcp_raw_sock_bind()
523 llcp_addr->sa_family = AF_NFC; in llcp_sock_getname()
663 if (!addr || len < sizeof(*addr) || addr->sa_family != AF_NFC) in llcp_sock_connect()
877 sockaddr->sa_family = AF_NFC; in llcp_sock_recvmsg()
/linux-6.3-rc2/net/sunrpc/
A Daddr.c131 switch (sap->sa_family) { in rpc_ntop()
271 switch (sap->sa_family) { in rpc_sockaddr2uaddr()
343 switch (sap->sa_family) { in rpc_uaddr2sockaddr()
/linux-6.3-rc2/include/net/
A Dvxlan.h439 if (ipa->sa.sa_family == AF_INET6) in vxlan_addr_any()
447 if (ipa->sa.sa_family == AF_INET6) in vxlan_addr_multicast()
558 rdst->remote_ip.sa.sa_family = AF_INET; in vxlan_fdb_nh_path_select()
562 rdst->remote_ip.sa.sa_family = AF_INET6; in vxlan_fdb_nh_path_select()
/linux-6.3-rc2/net/wireless/
A 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()
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dbtf_type_tag_user.c38 g = usockaddr->sa_family; in BPF_PROG()

Completed in 62 milliseconds

1234567