]> The Tcpdump Group git mirrors - libpcap/commit
Linux kernel 3.0 uses TP_STATUS_VLAN_VALID flag in packet
authorAni Sinha <[email protected]>
Tue, 11 Dec 2012 00:02:52 +0000 (16:02 -0800)
committerGuy Harris <[email protected]>
Tue, 11 Dec 2012 23:18:33 +0000 (15:18 -0800)
commit2fca73a39e73bc66222bcaa0fe983fa0b5f7beb6
tree5f65fca6195e53e277331cbd4fe3017ca80c149e
parentde6640d48b7efc2dc8b31c005cb6d6f882b78199
Linux kernel 3.0 uses TP_STATUS_VLAN_VALID flag in packet
    auxilliary data (aux->tp_status) to indicate a packet tagged
    with a valid vlan ID 0 with another packet that is not
    vlan tagged. Use this flag to check for the presence of
    a vlan tagged packet. Also be careful not to cause any
    breakage when libpcap is compiled against a newer kernel
    (>=3.0) and used on top of an older kernel that does not
    use this flag.

Signed-off-by: Ani Sinha <[email protected]>
pcap-linux.c