Home
last modified time | relevance | path

Searched full:af_packet (Results 1 – 25 of 39) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dlsm_cgroup.c14 #ifndef AF_PACKET
15 #define AF_PACKET 17 macro
59 /* Reject non-tx-only AF_PACKET. */ in real_create()
60 if (family == AF_PACKET && protocol != 0) in real_create()
113 if (sk->__sk_common.skc_family != AF_PACKET) in real_bind()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_redirect.c99 s = socket(AF_PACKET, SOCK_RAW, 0); in new_packet_sock()
100 if (!ASSERT_GE(s, 0, "socket(AF_PACKET)")) in new_packet_sock()
110 .sll_family = AF_PACKET, in new_packet_sock()
116 if (!ASSERT_OK(err, "bind(AF_PACKET)")) { in new_packet_sock()
H A Dxdp_context_test_run.c148 sock = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in send_test_packet()
/linux/net/ieee802154/6lowpan/
H A Dtx.c26 /* This callback will be called from AF_PACKET and IPv6 stack, the AF_PACKET
29 * TODO I think AF_PACKET DGRAM (sending/receiving) RAW (sending) makes no
/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/net/packet/
H A DMakefile6 obj-$(CONFIG_PACKET) += af_packet.o
H A DKconfig15 be called af_packet.
H A Daf_packet.c2487 sll->sll_family = AF_PACKET; in tpacket_rcv()
3396 if (sll->sll_family != AF_PACKET)
3562 sll->sll_family = AF_PACKET; in packet_recvmsg()
3664 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3688 sll->sll_family = AF_PACKET; in packet_getname()
4967 MODULE_DESCRIPTION("Packet socket support (AF_PACKET)");
/linux/samples/bpf/
H A Dsock_example.h25 sll.sll_family = AF_PACKET; in open_raw_sock()
/linux/Documentation/translations/zh_TW/dev-tools/
H A Dgdb-kernel-debugging.rst72 loading @0xffffffffa00ca000: /home/user/linux/build/net/packet/af_packet.ko
/linux/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.c179 laddr.sll_family = AF_PACKET; in do_bind_proto()
H A Dmsg_zerocopy.c518 laddr.sll_family = AF_PACKET; in do_tx()
/linux/Documentation/translations/zh_CN/dev-tools/
H A Dgdb-kernel-debugging.rst76 loading @0xffffffffa00ca000: /home/user/linux/build/net/packet/af_packet.ko
/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h224 #define AF_PACKET 17 /* Packet family */
281 #define PF_PACKET AF_PACKET
223 #define AF_PACKET global() macro
/linux/include/linux/
H A Dsocket.h224 #define AF_PACKET 17 /* Packet family */ macro
281 #define PF_PACKET AF_PACKET
/linux/net/openvswitch/
H A Dvport-netdev.c40 * packet for anyone who came before us (e.g. tcpdump via AF_PACKET). in netdev_port_receive()
/linux/drivers/net/can/dev/
H A Dskb.c342 /* af_packet does not apply CAN skb specific settings */ in can_skb_init_valid()
/linux/arch/um/drivers/
H A Dvector_user.c174 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd()
186 sock.sll_family = AF_PACKET; in create_raw_fd()
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c416 addr.sll_family = AF_PACKET; in send_packet()
532 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/testing/selftests/drivers/net/
H A Dgro.c
/linux/tools/testing/selftests/drivers/net/hw/
H A Dtoeplitz.c390 ll.sll_family = AF_PACKET; in create_ring()
/linux/net/mac802154/
H A Diface.c522 /* Let hard_header_len set to IEEE802154_MIN_HEADER_LEN. AF_PACKET in ieee802154_if_setup()

12