Home
last modified time | relevance | path

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

12

/linux-6.15/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-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dlsm_cgroup.c197 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 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_context_test_run.c136 sock = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_test_packet()
H A Dxdp_bonding.c220 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_udp_packets()
/linux-6.15/samples/bpf/
H A Dsock_example.h25 sll.sll_family = AF_PACKET; in open_raw_sock()
/linux-6.15/net/packet/
H A Ddiag.c144 rp->pdiag_family = AF_PACKET; in sk_diag_fill()
249 .family = AF_PACKET,
H A Daf_packet.c2509 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 Dsocket.h209 #define AF_PACKET 17 /* Packet family */ macro
266 #define PF_PACKET AF_PACKET
/linux-6.15/include/linux/
H A Dsocket.h209 #define AF_PACKET 17 /* Packet family */ macro
266 #define PF_PACKET AF_PACKET
/linux-6.15/tools/testing/selftests/net/
H A Dtxring_overwrite.c96 laddr.sll_family = AF_PACKET; in setup_tx()
H A Dpsock_fanout.c68 fd = socket(AF_PACKET, SOCK_RAW, 0); in loopback_set_up_down()
106 addr.sll_family = AF_PACKET; in sock_fanout_open()
H A Dpsock_snd.c174 laddr.sll_family = AF_PACKET; in do_bind()
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.c611 laddr.sll_family = AF_PACKET; in do_test()
H A Dioam6_parser.c1038 fd = socket(AF_PACKET, SOCK_DGRAM, __cpu_to_be16(ETH_P_IPV6)); in main()
/linux-6.15/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-6.15/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-6.15/arch/um/drivers/
H A Dvector_user.c171 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 Dvhost_net_test.c106 dev->sock = socket(AF_PACKET, SOCK_RAW, htons(TEST_PTYPE)); in vdev_create_socket()
/linux-6.15/tools/bpf/bpftool/
H A Dnet.c353 .ifm.ifi_family = AF_PACKET, in netlink_get_link()
/linux-6.15/tools/lib/bpf/
H A Dnetlink.c437 .ifinfo.ifi_family = AF_PACKET, in bpf_xdp_query()
/linux-6.15/net/mpls/
H A Daf_mpls.c742 case AF_PACKET: in nla_get_via()
1667 AF_INET, AF_INET6, AF_PACKET, in nla_put_via()

12