Home
last modified time | relevance | path

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

1234

/Linux-v6.6/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-v6.6/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.c284 if (asoc->base.sk->sk_family != PF_INET && in selinux_netlbl_sctp_assoc_request()
333 if (family != PF_INET && family != PF_INET6) in selinux_netlbl_inet_conn_request()
361 if (family == PF_INET) in selinux_netlbl_inet_csk_clone()
399 if (family != PF_INET && family != PF_INET6) in selinux_netlbl_socket_post_create()
/Linux-v6.6/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-v6.6/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()
Dgro.c110 if (proto == PF_INET) in setup_sock_filter()
117 if (proto == PF_INET) in setup_sock_filter()
190 } else if (proto == PF_INET) { in tcp_checksum()
237 } else if (proto == PF_INET) { in fill_networklayer()
389 if (proto == PF_INET) { in recompute_packet()
652 if (proto == PF_INET) { in send_changed_tos()
673 if (proto == PF_INET) { in send_changed_ECN()
864 if (proto == PF_INET) { in gro_sender()
891 int offset = proto == PF_INET ? 20 : 0; in gro_sender()
984 if (proto == PF_INET) { in gro_receiver()
[all …]
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()
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.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.c327 addr->sa_family == PF_INET ? '4' : '6', in do_test_tx()
369 case PF_INET: in setup_sockaddr()
446 domain = PF_INET; in parse_opts()
Dudpgso_bench_rx.c67 case PF_INET: in setup_sockaddr()
300 cfg_family = PF_INET; in parse_opts()
/Linux-v6.6/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-v6.6/net/rds/
Dtcp_listen.c277 ret = sock_create_kern(net, isv6 ? PF_INET6 : PF_INET, SOCK_STREAM, in rds_tcp_listen_init()
303 sin->sin_family = PF_INET; in rds_tcp_listen_init()
Dtcp_connect.c115 ret = sock_create_kern(rds_conn_net(conn), PF_INET, in rds_tcp_conn_path_connect()
/Linux-v6.6/net/dccp/
Dipv4.c584 .family = PF_INET,
992 .family = PF_INET,
1029 return inet_ctl_sock_create(&pn->v4_ctl_sk, PF_INET, in dccp_v4_init_net()
1096 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 33, 6);
1097 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 0, 6);
/Linux-v6.6/net/netfilter/
Dxt_TCPMSS.c51 if (family == PF_INET) { in tcpmss_reverse_mtu()
203 PF_INET, in tcpmss_tg4()
/Linux-v6.6/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-v6.6/net/l2tp/
Dl2tp_ip.c609 .family = PF_INET,
681 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 115, 2);
682 MODULE_ALIAS_NET_PF_PROTO(PF_INET, 115);
/Linux-v6.6/net/sctp/
Dprotocol.c585 struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL, in sctp_v4_create_accept_sk()
833 sa_family_t family = PF_INET; in sctp_ctl_sock_init()
1119 .family = PF_INET,
1201 case PF_INET: in sctp_get_pf_specific()
1214 case PF_INET: in sctp_register_pf()
1246 sctp_register_pf(&sctp_pf_inet, PF_INET); in sctp_v4_pf_init()
1731 MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-132");
/Linux-v6.6/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()
/Linux-v6.6/net/ipv4/
Daf_inet.c299 PF_INET, protocol, sock->type); in inet_create()
306 PF_INET, protocol); in inet_create()
325 sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot, kern); in inet_create()
1048 .family = PF_INET,
1082 .family = PF_INET,
1114 .family = PF_INET,
1139 .family = PF_INET,
/Linux-v6.6/net/ipv4/netfilter/
Dnf_defrag_ipv4.c68 if (sk && sk_fullsock(sk) && (sk->sk_family == PF_INET) && in ipv4_conntrack_defrag()
/Linux-v6.6/arch/um/drivers/
Dport_user.c117 fd = socket(PF_INET, SOCK_STREAM, 0); in port_listen_fd()
/Linux-v6.6/fs/smb/server/
Dtransport_tcp.c433 ret = sock_create(PF_INET, SOCK_STREAM, IPPROTO_TCP, in create_socket()
440 sin.sin_family = PF_INET; in create_socket()

1234