Home
last modified time | relevance | path

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

/linux-4.4.14/include/uapi/linux/
Dif_packet.h97 __u16 tp_mac; member
132 unsigned short tp_mac; member
146 __u16 tp_mac; member
169 __u16 tp_mac; member
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c258 test_payload((uint8_t *) ppd.raw + ppd.v1->tp_h.tp_mac, in walk_v1_v2_rx()
264 test_payload((uint8_t *) ppd.raw + ppd.v2->tp_h.tp_mac, in walk_v1_v2_rx()
518 bytes_with_padding += ALIGN_8(ppd->tp_snaplen + ppd->tp_mac); in __v3_walk_block()
520 test_payload((uint8_t *) ppd + ppd->tp_mac, ppd->tp_snaplen); in __v3_walk_block()
/linux-4.4.14/net/packet/
Daf_packet.c2222 h.h1->tp_mac = macoff; in tpacket_rcv()
2231 h.h2->tp_mac = macoff; in tpacket_rcv()
2253 h.h3->tp_mac = macoff; in tpacket_rcv()
2394 off = ph.h2->tp_mac; in tpacket_fill_skb()
2397 off = ph.h1->tp_mac; in tpacket_fill_skb()
3277 aux.tp_mac = 0; in packet_recvmsg()
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt188 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order
390 - Start+tp_mac: [ Optional MAC header ]
874 struct ethhdr *eth = (struct ethhdr *) ((uint8_t *) ppd + ppd->tp_mac);