Home
last modified time | relevance | path

Searched refs:tp_mac (Results 1 – 4 of 4) sorted by relevance

/linux-6.3-rc2/include/uapi/linux/
A Dif_packet.h102 __u16 tp_mac; member
138 unsigned short tp_mac; member
152 __u16 tp_mac; member
175 __u16 tp_mac; member
/linux-6.3-rc2/tools/testing/selftests/net/
A Dpsock_tpacket.c245 test_payload((uint8_t *) ppd.raw + ppd.v1->tp_h.tp_mac, in walk_v1_v2_rx()
251 test_payload((uint8_t *) ppd.raw + ppd.v2->tp_h.tp_mac, in walk_v1_v2_rx()
560 bytes_with_padding += ALIGN_8(ppd->tp_snaplen + ppd->tp_mac); in __v3_walk_block()
562 test_payload((uint8_t *) ppd + ppd->tp_mac, ppd->tp_snaplen); in __v3_walk_block()
/linux-6.3-rc2/net/packet/
A Daf_packet.c2415 h.h1->tp_mac = macoff; in tpacket_rcv()
2424 h.h2->tp_mac = macoff; in tpacket_rcv()
2446 h.h3->tp_mac = macoff; in tpacket_rcv()
2693 off = ph.h3->tp_mac; in tpacket_parse_header()
2696 off = ph.h2->tp_mac; in tpacket_parse_header()
2699 off = ph.h1->tp_mac; in tpacket_parse_header()
3528 aux.tp_mac = 0; in packet_recvmsg()
/linux-6.3-rc2/Documentation/networking/
A Dpacket_mmap.rst182 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order
387 - Start+tp_mac: [ Optional MAC header ]
892 struct ethhdr *eth = (struct ethhdr *) ((uint8_t *) ppd + ppd->tp_mac);

Completed in 14 milliseconds