Home
last modified time | relevance | path

Searched refs:AF_UNSPEC (Results 1 – 25 of 76) sorted by relevance

1234

/Linux-v5.4/samples/bpf/
Dxdp_tx_iptunnel_user.c111 return AF_UNSPEC; in parse_ipstr()
172 tnl.family = AF_UNSPEC; in main()
191 if (vip.family == AF_UNSPEC) in main()
209 if (family == AF_UNSPEC) in main()
211 if (tnl.family == AF_UNSPEC) { in main()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_flow_dissector.c69 static int cfg_l3_extra = AF_UNSPEC; /* optional SIT prefix */
70 static int cfg_l3_inner = AF_UNSPEC;
71 static int cfg_l3_outer = AF_UNSPEC;
629 if (cfg_l3_outer == AF_UNSPEC) in parse_opts()
637 if (cfg_l3_inner == AF_UNSPEC) in parse_opts()
718 if (cfg_encap_proto && cfg_l3_outer == AF_UNSPEC) in parse_opts()
720 else if ((!cfg_encap_proto) && cfg_l3_outer != AF_UNSPEC) in parse_opts()
722 else if ((!cfg_encap_proto) && cfg_l3_extra != AF_UNSPEC) in parse_opts()
725 if (cfg_l3_inner == AF_UNSPEC) in parse_opts()
/Linux-v5.4/net/netlabel/
Dnetlabel_domainhash.c120 return (f1 == f2) || (f1 == AF_UNSPEC) || (f2 == AF_UNSPEC); in netlbl_family_match()
178 if (family == AF_INET || family == AF_UNSPEC) { in netlbl_domhsh_search_def()
183 if (family == AF_INET6 || family == AF_UNSPEC) { in netlbl_domhsh_search_def()
285 (entry->family != AF_UNSPEC || in netlbl_domhsh_validate()
448 case AF_UNSPEC: in netlbl_domhsh_add()
801 if (family == AF_INET || family == AF_UNSPEC) { in netlbl_domhsh_remove()
810 if (family == AF_INET6 || family == AF_UNSPEC) { in netlbl_domhsh_remove()
858 if (family == AF_UNSPEC) in netlbl_domhsh_getentry()
Dnetlabel_mgmt.c113 entry->family = AF_UNSPEC; in netlbl_mgmt_add_common()
463 return netlbl_domhsh_remove(domain, AF_UNSPEC, &audit_info); in netlbl_mgmt_remove()
581 return netlbl_domhsh_remove_default(AF_UNSPEC, &audit_info); in netlbl_mgmt_removedef()
/Linux-v5.4/tools/lib/bpf/
Dnetlink.c152 req.ifinfo.ifi_family = AF_UNSPEC; in bpf_set_link_xdp_fd()
332 .t.tcm_family = AF_UNSPEC, in libbpf_nl_get_class()
371 .t.tcm_family = AF_UNSPEC, in libbpf_nl_get_qdisc()
410 .t.tcm_family = AF_UNSPEC, in libbpf_nl_get_filter()
/Linux-v5.4/include/linux/
Dsocket.h162 #define AF_UNSPEC 0 macro
216 #define PF_UNSPEC AF_UNSPEC
/Linux-v5.4/net/core/
Ddev_ioctl.c270 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
278 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
Ddst.c241 .family = AF_UNSPEC,
Dutils.c389 case AF_UNSPEC: in inet_pton_with_scope()
/Linux-v5.4/include/net/
Drtnetlink.h28 return AF_UNSPEC; in rtnl_msg_family()
/Linux-v5.4/net/ipv4/
Dinet_diag.c609 if (cond->family != AF_UNSPEC && in inet_diag_bc_run()
746 case AF_UNSPEC: in valid_hostcond()
932 if (r->sdiag_family != AF_UNSPEC && in inet_diag_dump_icsk()
991 if (r->sdiag_family != AF_UNSPEC && in inet_diag_dump_icsk()
1094 req.sdiag_family = AF_UNSPEC; /* compatibility */ in inet_diag_dump_compat()
Dudp_diag.c124 if (r->sdiag_family != AF_UNSPEC && in udp_dump()
Dnexthop.c222 nhm->nh_family = AF_UNSPEC; in nh_fill_node()
1326 case AF_UNSPEC: in rtm_to_nh_config()
1354 if (nhm->nh_family != AF_UNSPEC) { in rtm_to_nh_config()
Daf_inet.c473 if (addr->sin_family != AF_UNSPEC || in __inet_bind()
560 if (uaddr->sa_family == AF_UNSPEC) in inet_dgram_connect()
623 if (uaddr->sa_family == AF_UNSPEC) { in __inet_stream_connect()
/Linux-v5.4/net/netfilter/ipvs/
Dip_vs_pe_sip.c117 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af, in ip_vs_sip_ct_match()
/Linux-v5.4/net/xfrm/
Dxfrm_input.c367 if (x->sel.family == AF_UNSPEC) { in xfrm_prepare_input()
466 unsigned int family = AF_UNSPEC; in xfrm_input()
675 if (x->sel.family == AF_UNSPEC) { in xfrm_input()
/Linux-v5.4/tools/usb/usbip/src/
Dusbip_network.c260 hints.ai_family = AF_UNSPEC; in usbip_net_tcp_connect()
Dusbipd.c524 family = AF_UNSPEC; in do_standalone_mode()
/Linux-v5.4/net/netfilter/
Dnfnetlink_cttimeout.c175 nfmsg->nfgen_family = AF_UNSPEC; in ctnl_timeout_fill_info()
396 nfmsg->nfgen_family = AF_UNSPEC; in cttimeout_default_fill_info()
Dnfnetlink_acct.c146 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_acct_fill_info()
/Linux-v5.4/net/sctp/
Ddiag.c366 if (r->sdiag_family != AF_UNSPEC && sk->sk_family != r->sdiag_family) in sctp_sock_filter()
392 if (r->sdiag_family != AF_UNSPEC && in sctp_ep_dump()
Dbind_addr.c482 if (addr->sa.sa_family != AF_UNSPEC) in sctp_is_any()
/Linux-v5.4/security/selinux/
Dnetlabel.c551 if (addr->sa_family == AF_UNSPEC) { in selinux_netlbl_socket_connect_helper()
/Linux-v5.4/fs/nfs/
Dsuper.c1232 unsigned short protofamily = AF_UNSPEC; in nfs_parse_mount_options()
1233 unsigned short mountfamily = AF_UNSPEC; in nfs_parse_mount_options()
1665 if (protofamily != AF_UNSPEC && in nfs_parse_mount_options()
1669 if (mountfamily != AF_UNSPEC) { in nfs_parse_mount_options()
1800 if (args->mount_server.address.ss_family == AF_UNSPEC) { in nfs_request_mount()
/Linux-v5.4/net/sched/
Dact_api.c1051 t->tca_family = AF_UNSPEC; in tca_get_fill()
1177 t->tca_family = AF_UNSPEC; in tca_action_flush()
1506 t->tca_family = AF_UNSPEC; in tc_dump_action()

1234