Home
last modified time | relevance | path

Searched refs:PF_INET (Results 1 – 25 of 92) sorted by relevance

1234

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_flow_dissector.c125 case PF_INET: in util_printaddr()
312 case PF_INET: in build_packet()
336 case PF_INET: in build_packet()
355 cfg_l3_inner == PF_INET ? IPPROTO_IPIP in build_packet()
364 cfg_l3_inner == PF_INET ? ETH_P_IP in build_packet()
370 case PF_INET: in build_packet()
372 cfg_l3_outer == PF_INET ? IPPROTO_IPIP in build_packet()
381 cfg_l3_outer == PF_INET ? IPPROTO_IPIP in build_packet()
410 if (cfg_l3_extra == PF_INET) in setup_tx()
420 if (cfg_l3_outer == PF_INET) in setup_tx()
[all …]
/kernel/linux/linux-5.10/security/selinux/
Dnetnode.c110 case PF_INET: in sel_netnode_find()
124 case PF_INET: in sel_netnode_find()
151 case PF_INET: in sel_netnode_insert()
206 case PF_INET: in sel_netnode_sid_slow()
207 ret = security_node_sid(&selinux_state, PF_INET, in sel_netnode_sid_slow()
Dnetlabel.c280 if (ep->base.sk->sk_family != PF_INET && in selinux_netlbl_sctp_assoc_request()
329 if (family != PF_INET && family != PF_INET6) in selinux_netlbl_inet_conn_request()
357 if (family == PF_INET) in selinux_netlbl_inet_csk_clone()
395 if (family != PF_INET && family != PF_INET6) in selinux_netlbl_socket_post_create()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dtxtimestamp.c499 if (family == PF_INET) in do_test()
542 if (family == PF_INET) { in do_test()
585 if (family == PF_INET) in do_test()
591 fill_header_udp(buf + off, family == PF_INET); in do_test()
610 } else if (family == PF_INET) { in do_test()
866 family == PF_INET ? "INET" : "INET6", in do_main()
911 do_listen(PF_INET, &daddr, sizeof(daddr)); in main()
912 do_main(PF_INET); in main()
Dpsock_lib.h79 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
80 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
Dmsg_zerocopy.c250 PF_INET : PF_INET6)); in do_sendmsg_corked()
301 case PF_INET: in setup_sockaddr()
497 uint16_t proto = cfg_family == PF_INET ? ETH_P_IP : ETH_P_IPV6; in do_tx()
524 if (cfg_family == PF_INET) in do_tx()
633 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram()
716 cfg_family = PF_INET; in parse_opts()
Dtcp_inq.c42 case PF_INET: in setup_loopback_addr()
111 family = PF_INET; in main()
Dudpgso_bench_tx.c121 case PF_INET: in setup_sockaddr()
431 cfg_family = PF_INET; in parse_opts()
513 if (cfg_family == PF_INET) in parse_opts()
656 set_pmtu_discover(fd, cfg_family == PF_INET); in main()
Dudpgso_bench_rx.c67 case PF_INET: in setup_sockaddr()
302 cfg_family = PF_INET; in parse_opts()
Dtcp_mmap.c288 case PF_INET: in setup_sockaddr()
385 cfg_family = PF_INET; in main()
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dsocket.h126 #define PF_INET 2 macro
134 #define AF_INET PF_INET
/kernel/linux/linux-5.10/samples/bpf/
Dsock_flags_kern.c41 if (sk->family == PF_INET && in bpf_prog2()
Dcookie_uid_helper_example.c221 s_rcv = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()
230 s_send = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()
/kernel/linux/linux-5.10/net/rds/
Dtcp_listen.c272 ret = sock_create_kern(net, isv6 ? PF_INET6 : PF_INET, SOCK_STREAM, in rds_tcp_listen_init()
298 sin->sin_family = PF_INET; in rds_tcp_listen_init()
/kernel/linux/linux-5.10/net/dccp/
Dipv4.c568 .family = PF_INET,
977 .family = PF_INET,
1013 return inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET, in dccp_v4_init_net()
1076 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 33, 6);
1077 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 0, 6);
/kernel/linux/linux-5.10/net/netfilter/
Dxt_TCPMSS.c51 if (family == PF_INET) { in tcpmss_reverse_mtu()
203 PF_INET, in tcpmss_tg4()
/kernel/linux/linux-5.10/net/sctp/
Dprotocol.c578 struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL, in sctp_v4_create_accept_sk()
828 sa_family_t family = PF_INET; in sctp_ctl_sock_init()
1026 .family = PF_INET,
1103 case PF_INET: in sctp_get_pf_specific()
1116 case PF_INET: in sctp_register_pf()
1148 sctp_register_pf(&sctp_pf_inet, PF_INET); in sctp_v4_pf_init()
1623 MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-132");
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_001.cpp44 int fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); in SetIP()
DIt_net_container_002.cpp44 int fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); in SetIP()
/kernel/linux/linux-5.10/fs/nfs/
Dcallback.c48 ret = svc_create_xprt(serv, "tcp", net, PF_INET, in nfs4_callback_up_net()
55 nn->nfs_callback_tcpport, PF_INET, net->ns.inum); in nfs4_callback_up_net()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ip.c608 .family = PF_INET,
682 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 2, IPPROTO_L2TP);
683 MODULE_ALIAS_NET_PF_PROTO(PF_INET, IPPROTO_L2TP);
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dnf_defrag_ipv4.c67 if (sk && sk_fullsock(sk) && (sk->sk_family == PF_INET) && in ipv4_conntrack_defrag()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_filter.c699 if (family == PF_INET) { in cxgb4_set_ftid()
721 if (family == PF_INET) in cxgb4_set_hpftid()
734 if (family == PF_INET) { in cxgb4_clear_ftid()
749 if (family == PF_INET) in cxgb4_clear_hpftid()
1649 fs->type ? PF_INET6 : PF_INET); in __cxgb4_set_filter()
1653 fs->type ? PF_INET6 : PF_INET, in __cxgb4_set_filter()
1724 fs->type ? PF_INET6 : PF_INET); in __cxgb4_set_filter()
1727 fs->type ? PF_INET6 : PF_INET, in __cxgb4_set_filter()
1837 f->fs.type ? PF_INET6 : PF_INET); in __cxgb4_del_filter()
1841 f->fs.type ? PF_INET6 : PF_INET, in __cxgb4_del_filter()
/kernel/linux/linux-5.10/net/ipv4/
Daf_inet.c296 PF_INET, protocol, sock->type); in inet_create()
303 PF_INET, protocol); in inet_create()
322 sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot, kern); in inet_create()
1031 .family = PF_INET,
1065 .family = PF_INET,
1096 .family = PF_INET,
1121 .family = PF_INET,
/kernel/linux/linux-5.10/arch/um/drivers/
Dport_user.c116 fd = socket(PF_INET, SOCK_STREAM, 0); in port_listen_fd()

1234