From 68d16cd0ae0079545acc127317a21b49b4b782a4 Mon Sep 17 00:00:00 2001 From: kevin sztern Date: Tue, 26 Nov 2019 23:22:20 +0000 Subject: [PATCH] packet.7: Add missing tpacket_auxdata field (tp_vlan_tpid) The definition of the tpacket_auxdata struct in the manpage is not the same as the definition found in /include/uapi/linux/if_packet.h. In particular, instead of a tp_padding field, there is a tp_vlan_tpid field. An example of a project using this field is libpcap[1]. [1]: https://github.com/the-tcpdump-group/libpcap/blob/master/pcap-linux.c#L349 Signed-off-by: Michael Kerrisk --- man7/packet.7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man7/packet.7 b/man7/packet.7 index b624d47d1..ecbd63409 100644 --- a/man7/packet.7 +++ b/man7/packet.7 @@ -257,7 +257,7 @@ struct tpacket_auxdata { __u16 tp_mac; __u16 tp_net; __u16 tp_vlan_tci; - __u16 tp_padding; + __u16 tp_vlan_tpid; }; .EE .in