Home
last modified time | relevance | path

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

12

/openbmc/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()
/openbmc/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()
/openbmc/linux/samples/bpf/
H A Dsock_example.h25 sll.sll_family = AF_PACKET; in open_raw_sock()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_sockio.cpp35 RETURN_IF_ERROR(sockfd_ = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), in init()
H A Dnet_iface.cpp108 saddr.sll_family = AF_PACKET; in bind_sock()
/openbmc/linux/net/packet/
H A Ddiag.c144 rp->pdiag_family = AF_PACKET; in sk_diag_fill()
249 .family = AF_PACKET,
H A Daf_packet.c2512 sll->sll_family = AF_PACKET; in tpacket_rcv()
3376 if (sll->sll_family != AF_PACKET) in packet_bind()
3542 sll->sll_family = AF_PACKET; in packet_recvmsg()
3644 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3668 sll->sll_family = AF_PACKET; in packet_getname()
/openbmc/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h208 #define AF_PACKET 17 /* Packet family */ macro
265 #define PF_PACKET AF_PACKET
/openbmc/linux/include/linux/
H A Dsocket.h208 #define AF_PACKET 17 /* Packet family */ macro
265 #define PF_PACKET AF_PACKET
/openbmc/inarp/
H A Dinarp.c396 if (addr.sll_family != AF_PACKET) in arp_recv()
455 inarp.arp_sd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ARP)); in main()
/openbmc/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;
598 AF_PACKET fanout mode
601 In the AF_PACKET fanout mode, packet reception can be load balanced among
645 int err, fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP));
664 ll.sll_family = AF_PACKET;
754 AF_PACKET TPACKET_V3 example
757 AF_PACKET's TPACKET_V3 ring buffer can be configured to use non-static frame
832 fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
/openbmc/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 Dcsum.c415 addr.sll_family = AF_PACKET; in send_packet()
531 laddr.sll_family = AF_PACKET; in recv_prepare_packet_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 Dioam6_parser.c629 fd = socket(AF_PACKET, SOCK_DGRAM, __cpu_to_be16(ETH_P_IPV6)); in main()
H A Dgro.c721 daddr.sll_family = AF_PACKET; in bind_packetsocket()
817 daddr.sll_family = AF_PACKET; in gro_sender()
H A Dtxtimestamp.c603 laddr.sll_family = AF_PACKET; in do_test()
H A Dmsg_zerocopy.c515 laddr.sll_family = AF_PACKET; in do_tx()
/openbmc/u-boot/arch/sandbox/cpu/
H A Deth-raw-os.c84 device->sll_family = AF_PACKET; in _raw_packet_start()
/openbmc/linux/arch/um/drivers/
H A Dvector_user.c168 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd()
180 sock.sll_family = AF_PACKET; in create_raw_fd()
/openbmc/u-boot/board/sandbox/
H A DREADME.sandbox227 For Ethernet network adapters, the bridge utilizes the RAW AF_PACKET API. This
276 The 'lo' interface cannot use the RAW AF_PACKET API because the lo interface

12