Home
last modified time | relevance | path

Searched refs:AF_PACKET (Results 1 – 23 of 23) sorted by relevance

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dlsm_cgroup.c10 #ifndef AF_PACKET
11 #define AF_PACKET 17 macro
54 if (family == AF_PACKET && protocol != 0) in real_create()
103 if (sock->sk->__sk_common.skc_family != AF_PACKET) in real_bind()
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dlsm_cgroup.c198 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional()
201 fd = socket(AF_PACKET, SOCK_RAW, 0); in test_lsm_cgroup_functional()
207 .sll_family = AF_PACKET, in test_lsm_cgroup_functional()
Dxdp_bonding.c227 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_udp_packets()
/Linux-v6.1/samples/bpf/
Dsock_example.h25 sll.sll_family = AF_PACKET; in open_raw_sock()
/Linux-v6.1/net/packet/
Ddiag.c144 rp->pdiag_family = AF_PACKET; in sk_diag_fill()
248 .family = AF_PACKET,
Daf_packet.c2458 sll->sll_family = AF_PACKET; in tpacket_rcv()
3307 if (sll->sll_family != AF_PACKET) in packet_bind()
3477 sll->sll_family = AF_PACKET; in packet_recvmsg()
3561 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3585 sll->sll_family = AF_PACKET; in packet_getname()
/Linux-v6.1/tools/perf/trace/beauty/include/linux/
Dsocket.h204 #define AF_PACKET 17 /* Packet family */ macro
261 #define PF_PACKET AF_PACKET
/Linux-v6.1/include/linux/
Dsocket.h204 #define AF_PACKET 17 /* Packet family */ macro
261 #define PF_PACKET AF_PACKET
/Linux-v6.1/tools/testing/selftests/net/
Dtxring_overwrite.c96 laddr.sll_family = AF_PACKET; in setup_tx()
Dpsock_snd.c174 laddr.sll_family = AF_PACKET; in do_bind()
Dpsock_fanout.c78 addr.sll_family = AF_PACKET; in sock_fanout_open()
Dtoeplitz.c358 ll.sll_family = AF_PACKET; in create_ring()
Dioam6_parser.c629 fd = socket(AF_PACKET, SOCK_DGRAM, __cpu_to_be16(ETH_P_IPV6)); in main()
Dgro.c721 daddr.sll_family = AF_PACKET; in bind_packetsocket()
817 daddr.sll_family = AF_PACKET; in gro_sender()
Dmsg_zerocopy.c511 laddr.sll_family = AF_PACKET; in do_tx()
Dtxtimestamp.c603 laddr.sll_family = AF_PACKET; in do_test()
/Linux-v6.1/Documentation/networking/
Dpacket_mmap.rst28 Non PACKET_MMAP capture process (plain AF_PACKET) is very
162 my_addr.sll_family = AF_PACKET;
598 AF_PACKET fanout mode
601 In the AF_PACKET fanout mode, packet reception can be load balanced among
645 int err, fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP));
664 ll.sll_family = AF_PACKET;
754 AF_PACKET TPACKET_V3 example
757 AF_PACKET's TPACKET_V3 ring buffer can be configured to use non-static frame
832 fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
Daf_xdp.rst100 NOT consult the paper from 2017 on "AF_PACKET v4", the first attempt
/Linux-v6.1/arch/um/drivers/
Dvector_user.c168 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd()
180 sock.sll_family = AF_PACKET; in create_raw_fd()
/Linux-v6.1/tools/bpf/bpftool/
Dnet.c340 .ifm.ifi_family = AF_PACKET, in netlink_get_link()
/Linux-v6.1/tools/lib/bpf/
Dnetlink.c366 .ifinfo.ifi_family = AF_PACKET, in bpf_xdp_query()
/Linux-v6.1/net/mpls/
Daf_mpls.c741 case AF_PACKET: in nla_get_via()
1679 AF_INET, AF_INET6, AF_DECnet, AF_PACKET, in nla_put_via()
/Linux-v6.1/drivers/vhost/
Dnet.c1437 if (sock->sk->sk_family != AF_PACKET) { in get_raw_socket()