/linux/tools/testing/selftests/bpf/progs/ |
H A D | lsm_cgroup.c | 14 #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 D | lsm_cgroup.c | 201 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 D | lwt_redirect.c | 99 s = socket(AF_PACKET, SOCK_RAW, 0); in new_packet_sock() 110 .sll_family = AF_PACKET, in new_packet_sock()
|
H A D | xdp_bonding.c | 220 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_udp_packets()
|
/linux/samples/bpf/ |
H A D | sock_example.h | 25 sll.sll_family = AF_PACKET; in open_raw_sock()
|
/linux/net/packet/ |
H A D | diag.c | 144 rp->pdiag_family = AF_PACKET; in sk_diag_fill() 249 .family = AF_PACKET,
|
H A D | af_packet.c | 2522 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 D | socket.h | 209 #define AF_PACKET 17 /* Packet family */ macro 266 #define PF_PACKET AF_PACKET
|
/linux/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 209 #define AF_PACKET 17 /* Packet family */ macro 266 #define PF_PACKET AF_PACKET
|
/linux/tools/testing/selftests/net/ |
H A D | txring_overwrite.c | 96 laddr.sll_family = AF_PACKET; in setup_tx()
|
H A D | psock_snd.c | 174 laddr.sll_family = AF_PACKET; in do_bind()
|
H A D | psock_fanout.c | 78 addr.sll_family = AF_PACKET; in sock_fanout_open()
|
H A D | toeplitz.c | 360 ll.sll_family = AF_PACKET; in create_ring()
|
H A D | gro.c | 887 daddr.sll_family = AF_PACKET; in bind_packetsocket() 984 daddr.sll_family = AF_PACKET; in gro_sender()
|
H A D | msg_zerocopy.c | 515 laddr.sll_family = AF_PACKET; in do_tx()
|
H A D | txtimestamp.c | 608 laddr.sll_family = AF_PACKET; in do_test()
|
/linux/Documentation/networking/ |
H A D | packet_mmap.rst | 28 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 D | csum.c | 415 addr.sll_family = AF_PACKET; in send_packet() 531 laddr.sll_family = AF_PACKET; in recv_prepare_packet_bind()
|
/linux/tools/virtio/ |
H A D | vhost_net_test.c | 106 dev->sock = socket(AF_PACKET, SOCK_RAW, htons(TEST_PTYPE)); in vdev_create_socket()
|
/linux/tools/bpf/bpftool/ |
H A D | net.c | 353 .ifm.ifi_family = AF_PACKET, in netlink_get_link()
|
/linux/tools/lib/bpf/ |
H A D | netlink.c | 437 .ifinfo.ifi_family = AF_PACKET, in bpf_xdp_query()
|
/linux/net/mpls/ |
H A D | af_mpls.c | 742 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 D | net.c | 1415 if (sock->sk->sk_family != AF_PACKET) { in get_raw_socket()
|