netsniff-ng: ring: Fix build if tp_vlan_tpid is not available in kernel header
commit3384ee7119222a6230c983dbdcbaf2ac2d6f92fb
authorTobias Klauser <tklauser@distanz.ch>
Mon, 17 Aug 2015 08:15:31 +0000 (17 10:15 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 17 Aug 2015 08:15:31 +0000 (17 10:15 +0200)
treea44eed3811d873f055e75787bf2eab425ca1b27b
parent579e8524cb9c68dab9117981966b18d2494b0787
netsniff-ng: ring: Fix build if tp_vlan_tpid is not available in kernel header

The tp_vlan_tpid member of struct tpacket_auxdata was only added in
kernel commit a0cdfcf39362 ("packet: deliver VLAN TPID to userspace").
Support building netsniff-ng also against kernel headers from earlier
versions.

Fixes: 579e8524 ("netsniff-ng: vlan: Show vlan info from tpacket v3")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
ring.h