Home
last modified time | relevance | path

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

/linux-4.1.27/include/uapi/linux/
Dif_packet.h87 __u16 tp_mac; member
122 unsigned short tp_mac; member
136 __u16 tp_mac; member
159 __u16 tp_mac; member
/linux-4.1.27/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.1.27/net/packet/
Daf_packet.c2001 h.h1->tp_mac = macoff; in tpacket_rcv()
2010 h.h2->tp_mac = macoff; in tpacket_rcv()
2032 h.h3->tp_mac = macoff; in tpacket_rcv()
2185 off = ph.h2->tp_mac; in tpacket_fill_skb()
2188 off = ph.h1->tp_mac; in tpacket_fill_skb()
3053 aux.tp_mac = 0; in packet_recvmsg()
/linux-4.1.27/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);