| /linux-6.15/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-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | lsm_cgroup.c | 197 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional() 200 fd = socket(AF_PACKET, SOCK_RAW, 0); in test_lsm_cgroup_functional() 206 .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_context_test_run.c | 136 sock = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_test_packet()
|
| H A D | xdp_bonding.c | 220 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_udp_packets()
|
| /linux-6.15/samples/bpf/ |
| H A D | sock_example.h | 25 sll.sll_family = AF_PACKET; in open_raw_sock()
|
| /linux-6.15/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 | 2509 sll->sll_family = AF_PACKET; in tpacket_rcv() 3369 if (sll->sll_family != AF_PACKET) in packet_bind() 3535 sll->sll_family = AF_PACKET; in packet_recvmsg() 3637 uaddr->sa_family = AF_PACKET; in packet_getname_spkt() 3661 sll->sll_family = AF_PACKET; in packet_getname()
|
| /linux-6.15/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-6.15/include/linux/ |
| H A D | socket.h | 209 #define AF_PACKET 17 /* Packet family */ macro 266 #define PF_PACKET AF_PACKET
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | txring_overwrite.c | 96 laddr.sll_family = AF_PACKET; in setup_tx()
|
| H A D | psock_fanout.c | 68 fd = socket(AF_PACKET, SOCK_RAW, 0); in loopback_set_up_down() 106 addr.sll_family = AF_PACKET; in sock_fanout_open()
|
| H A D | psock_snd.c | 174 laddr.sll_family = AF_PACKET; in do_bind()
|
| 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 | 611 laddr.sll_family = AF_PACKET; in do_test()
|
| H A D | ioam6_parser.c | 1038 fd = socket(AF_PACKET, SOCK_DGRAM, __cpu_to_be16(ETH_P_IPV6)); in main()
|
| /linux-6.15/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-6.15/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-6.15/arch/um/drivers/ |
| H A D | vector_user.c | 171 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd() 183 sock.sll_family = AF_PACKET; in create_raw_fd()
|
| /linux-6.15/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-6.15/tools/bpf/bpftool/ |
| H A D | net.c | 353 .ifm.ifi_family = AF_PACKET, in netlink_get_link()
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | netlink.c | 437 .ifinfo.ifi_family = AF_PACKET, in bpf_xdp_query()
|
| /linux-6.15/net/mpls/ |
| H A D | af_mpls.c | 742 case AF_PACKET: in nla_get_via() 1667 AF_INET, AF_INET6, AF_PACKET, in nla_put_via()
|