Home
last modified time | relevance | path

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

1234

/linux-6.12.1/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 …]
/linux-6.12.1/security/selinux/
Dnetnode.c109 case PF_INET: in sel_netnode_find()
123 case PF_INET: in sel_netnode_find()
150 case PF_INET: in sel_netnode_insert()
206 case PF_INET: in sel_netnode_sid_slow()
207 ret = security_node_sid(PF_INET, in sel_netnode_sid_slow()
Dnetlabel.c286 if (asoc->base.sk->sk_family != PF_INET && in selinux_netlbl_sctp_assoc_request()
335 if (family != PF_INET && family != PF_INET6) in selinux_netlbl_inet_conn_request()
363 if (family == PF_INET || family == PF_INET6) in selinux_netlbl_inet_csk_clone()
401 if (family != PF_INET && family != PF_INET6) in selinux_netlbl_socket_post_create()
/linux-6.12.1/net/handshake/
Dhandshake-test.c152 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test1()
193 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test3()
219 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test4()
254 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test5()
292 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test6()
324 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test1()
360 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test2()
402 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test3()
460 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_destroy_test1()
/linux-6.12.1/tools/testing/selftests/net/
Dtxtimestamp.c504 if (family == PF_INET) in do_test()
547 if (family == PF_INET) { in do_test()
590 if (family == PF_INET) in do_test()
596 fill_header_udp(buf + off, family == PF_INET); in do_test()
615 } else if (family == PF_INET) { in do_test()
871 family == PF_INET ? "INET" : "INET6", in do_main()
916 do_listen(PF_INET, &daddr, sizeof(daddr)); in main()
917 do_main(PF_INET); in main()
Dpsock_lib.h81 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
82 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
Dgro.c117 if (proto == PF_INET) in setup_sock_filter()
127 if (proto == PF_INET) in setup_sock_filter()
216 } else if (proto == PF_INET) { in tcp_checksum()
263 } else if (proto == PF_INET) { in fill_networklayer()
415 if (proto == PF_INET) { in recompute_packet()
818 if (proto == PF_INET) { in send_changed_tos()
839 if (proto == PF_INET) { in send_changed_ECN()
1031 if (proto == PF_INET) { in gro_sender()
1074 int offset = proto == PF_INET ? 20 : 0; in gro_sender()
1167 if (proto == PF_INET) { in gro_receiver()
[all …]
Dmsg_zerocopy.c253 PF_INET : PF_INET6)); in do_sendmsg_corked()
304 case PF_INET: in setup_sockaddr()
501 uint16_t proto = cfg_family == PF_INET ? ETH_P_IP : ETH_P_IPV6; in do_tx()
528 if (cfg_family == PF_INET) in do_tx()
640 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram()
723 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.c122 case PF_INET: in setup_sockaddr()
448 cfg_family = PF_INET; in parse_opts()
535 if (cfg_family == PF_INET) in parse_opts()
678 set_pmtu_discover(fd, cfg_family == PF_INET); in main()
Dso_txtime.c330 addr->sa_family == PF_INET ? '4' : '6', in do_test_tx()
372 case PF_INET: in setup_sockaddr()
449 domain = PF_INET; in parse_opts()
Dio_uring_zerocopy_tx.c247 cfg_family = PF_INET; in parse_opts()
281 case PF_INET: in parse_opts()
Dudpgso_bench_rx.c67 case PF_INET: in setup_sockaddr()
300 cfg_family = PF_INET; in parse_opts()
/linux-6.12.1/fs/nfs/
Dcallback.c47 ret = svc_xprt_create(serv, "tcp", net, PF_INET, in nfs4_callback_up_net()
54 nn->nfs_callback_tcpport, PF_INET, net->ns.inum); in nfs4_callback_up_net()
/linux-6.12.1/samples/bpf/
Dcookie_uid_helper_example.c230 s_rcv = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()
239 s_send = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()
/linux-6.12.1/net/rds/
Dtcp_listen.c281 ret = sock_create_kern(net, isv6 ? PF_INET6 : PF_INET, SOCK_STREAM, in rds_tcp_listen_init()
307 sin->sin_family = PF_INET; in rds_tcp_listen_init()
/linux-6.12.1/net/dccp/
Dipv4.c586 .family = PF_INET,
997 .family = PF_INET,
1034 return inet_ctl_sock_create(&pn->v4_ctl_sk, PF_INET, in dccp_v4_init_net()
1101 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 33, 6);
1102 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 0, 6);
/linux-6.12.1/net/netfilter/
Dxt_TCPMSS.c51 if (family == PF_INET) { in tcpmss_reverse_mtu()
203 PF_INET, in tcpmss_tg4()
/linux-6.12.1/net/sctp/
Dprotocol.c586 struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL, in sctp_v4_create_accept_sk()
834 sa_family_t family = PF_INET; in sctp_ctl_sock_init()
1120 .family = PF_INET,
1202 case PF_INET: in sctp_get_pf_specific()
1215 case PF_INET: in sctp_register_pf()
1247 sctp_register_pf(&sctp_pf_inet, PF_INET); in sctp_v4_pf_init()
1726 MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-132");
/linux-6.12.1/net/l2tp/
Dl2tp_ip.c634 .family = PF_INET,
740 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 115, 2);
741 MODULE_ALIAS_NET_PF_PROTO(PF_INET, 115);
/linux-6.12.1/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()
1650 fs->type ? PF_INET6 : PF_INET); in __cxgb4_set_filter()
1654 fs->type ? PF_INET6 : PF_INET, in __cxgb4_set_filter()
1725 fs->type ? PF_INET6 : PF_INET); in __cxgb4_set_filter()
1728 fs->type ? PF_INET6 : PF_INET, in __cxgb4_set_filter()
1838 f->fs.type ? PF_INET6 : PF_INET); in __cxgb4_del_filter()
1842 f->fs.type ? PF_INET6 : PF_INET, in __cxgb4_del_filter()
/linux-6.12.1/net/ipv4/
Daf_inet.c300 PF_INET, protocol, sock->type); in inet_create()
307 PF_INET, protocol); in inet_create()
326 sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot, kern); in inet_create()
1055 .family = PF_INET,
1090 .family = PF_INET,
1122 .family = PF_INET,
1147 .family = PF_INET,
/linux-6.12.1/net/smc/
Dsmc_inet.c34 .family = PF_INET,
/linux-6.12.1/net/ipv4/netfilter/
Dnf_defrag_ipv4.c68 if (sk && sk_fullsock(sk) && (sk->sk_family == PF_INET) && in ipv4_conntrack_defrag()
/linux-6.12.1/tools/testing/selftests/net/lib/
Dcsum.c323 if (cfg_family == PF_INET) in build_packet()
533 if (cfg_family == PF_INET) in recv_prepare_packet_bind()
801 cfg_family = PF_INET; in parse_args()

1234