Home
last modified time | relevance | path

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

/Linux-v5.10/include/uapi/linux/
Dif_packet.h100 __u16 tp_mac; member
135 unsigned short tp_mac; member
149 __u16 tp_mac; member
172 __u16 tp_mac; member
/Linux-v5.10/tools/testing/selftests/net/
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-v5.10/net/packet/
Daf_packet.c2335 h.h1->tp_mac = macoff; in tpacket_rcv()
2344 h.h2->tp_mac = macoff; in tpacket_rcv()
2366 h.h3->tp_mac = macoff; in tpacket_rcv()
2613 off = ph.h3->tp_mac; in tpacket_parse_header()
2616 off = ph.h2->tp_mac; in tpacket_parse_header()
2619 off = ph.h1->tp_mac; in tpacket_parse_header()
3445 aux.tp_mac = 0; in packet_recvmsg()
/Linux-v5.10/Documentation/networking/
Dpacket_mmap.rst182 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order
388 - Start+tp_mac: [ Optional MAC header ]
893 struct ethhdr *eth = (struct ethhdr *) ((uint8_t *) ppd + ppd->tp_mac);