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 <mtk.manpages@gmail.com>
This commit is contained in:
kevin sztern 2019-11-26 23:22:20 +00:00 committed by Michael Kerrisk
parent b9827733ba
commit 68d16cd0ae
1 changed files with 1 additions and 1 deletions

View File

@ -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