netsniff-ng: vlan: Show vlan info from tpacket v3
commit579e8524cb9c68dab9117981966b18d2494b0787
authorVadim Kochan <vadim4j@gmail.com>
Sun, 16 Aug 2015 21:21:31 +0000 (17 00:21 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 17 Aug 2015 07:54:55 +0000 (17 09:54 +0200)
tree2bbf08b50cd14071a0602bbb9dbd116dd1612c82
parentf4b90d0194cdb5275823116b2229c04249225d7e
netsniff-ng: vlan: Show vlan info from tpacket v3

Show vlan info (vid, prio & proto) from tpacket struct, in separated
line. It might be useful to sniff it in case if vlan reordering is on
(which is by default) and physical (vlan underlying) device supports
vlan offloading.

Meanwhile it uses only v3 tpacket info as location of vlan fields are
different between v2 & v3 (v1 does not have it at all), but current code
only has possibility to check if v3 is used which is not enough.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[ tk: make print format consistent with VLAN dissector ]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissector.h
ring.h