Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dlsm_cgroup.c14 #ifndef AF_PACKET
15 #define AF_PACKET 17 macro
58 if (family == AF_PACKET && protocol != 0) in real_create()
111 if (sk->__sk_common.skc_family != AF_PACKET) in real_bind()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlsm_cgroup.c201 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional()
204 fd = socket(AF_PACKET, SOCK_RAW, 0); in test_lsm_cgroup_functional()
210 .sll_family = AF_PACKET, in test_lsm_cgroup_functional()
H A Dlwt_redirect.c99 s = socket(AF_PACKET, SOCK_RAW, 0); in new_packet_sock()
110 .sll_family = AF_PACKET, in new_packet_sock()
H A Dxdp_bonding.c220 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_udp_packets()
/linux/samples/bpf/
H A Dsock_example.h25 sll.sll_family = AF_PACKET; in open_raw_sock()
/linux/net/packet/
H A Ddiag.c144 rp->pdiag_family = AF_PACKET; in sk_diag_fill()
249 .family = AF_PACKET,
H A Daf_packet.c2522 sll->sll_family = AF_PACKET; in tpacket_rcv()
3383 if (sll->sll_family != AF_PACKET) in packet_bind()
3549 sll->sll_family = AF_PACKET; in packet_recvmsg()
3651 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3675 sll->sll_family = AF_PACKET; in packet_getname()
/linux/include/linux/
H A Dsocket.h209 #define AF_PACKET 17 /* Packet family */ macro
266 #define PF_PACKET AF_PACKET
/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h209 #define AF_PACKET 17 /* Packet family */ macro
266 #define PF_PACKET AF_PACKET
/linux/tools/testing/selftests/net/
H A Dtxring_overwrite.c96 laddr.sll_family = AF_PACKET; in setup_tx()
H A Dpsock_snd.c174 laddr.sll_family = AF_PACKET; in do_bind()
H A Dpsock_fanout.c78 addr.sll_family = AF_PACKET; in sock_fanout_open()
H A Dtoeplitz.c360 ll.sll_family = AF_PACKET; in create_ring()
H A Dgro.c887 daddr.sll_family = AF_PACKET; in bind_packetsocket()
984 daddr.sll_family = AF_PACKET; in gro_sender()
H A Dmsg_zerocopy.c515 laddr.sll_family = AF_PACKET; in do_tx()
H A Dtxtimestamp.c608 laddr.sll_family = AF_PACKET; in do_test()
/linux/Documentation/networking/
H A Dpacket_mmap.rst28 Non PACKET_MMAP capture process (plain AF_PACKET) is very
162 my_addr.sll_family = AF_PACKET;
599 AF_PACKET fanout mode
602 In the AF_PACKET fanout mode, packet reception can be load balanced among
646 int err, fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP));
665 ll.sll_family = AF_PACKET;
755 AF_PACKET TPACKET_V3 example
758 AF_PACKET's TPACKET_V3 ring buffer can be configured to use non-static frame
833 fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c415 addr.sll_family = AF_PACKET; in send_packet()
531 laddr.sll_family = AF_PACKET; in recv_prepare_packet_bind()
/linux/tools/virtio/
H A Dvhost_net_test.c106 dev->sock = socket(AF_PACKET, SOCK_RAW, htons(TEST_PTYPE)); in vdev_create_socket()
/linux/tools/bpf/bpftool/
H A Dnet.c353 .ifm.ifi_family = AF_PACKET, in netlink_get_link()
/linux/tools/lib/bpf/
H A Dnetlink.c437 .ifinfo.ifi_family = AF_PACKET, in bpf_xdp_query()
/linux/net/mpls/
H A Daf_mpls.c742 case AF_PACKET: in nla_get_via()
1667 AF_INET, AF_INET6, AF_DECnet, AF_PACKET, in nla_put_via()
/linux/drivers/vhost/
H A Dnet.c1415 if (sock->sk->sk_family != AF_PACKET) { in get_raw_socket()