From: Ben Greear Date: Wed, 1 Jun 2011 06:49:10 +0000 (+0000) Subject: af-packet: Add flag to distinguish VID 0 from no-vlan. X-Git-Tag: v3.0-rc2~7^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3bcc23e890a6d49d6763d9eb073d711de2e0469;p=pandora-kernel.git af-packet: Add flag to distinguish VID 0 from no-vlan. Currently, user-space cannot determine if a 0 tcp_vlan_tci means there is no VLAN tag or the VLAN ID was zero. Add flag to make this explicit. User-space can check for TP_STATUS_VLAN_VALID || tp_vlan_tci > 0, which will be backwards compatible. Older could would have just checked for tp_vlan_tci, so it will work no worse than before. Signed-off-by: Ben Greear Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed