From: Eric Dumazet Date: Sat, 27 Oct 2012 02:26:17 +0000 (+0000) Subject: net: filter: add vlan tag access X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3335031b9452baebfe49b8b5e55d3fe0c4677d1;p=pandora-kernel.git net: filter: add vlan tag access BPF filters lack ability to access skb->vlan_tci This patch adds two new ancillary accessors : SKF_AD_VLAN_TAG (44) mapped to vlan_tx_tag_get(skb) SKF_AD_VLAN_TAG_PRESENT (48) mapped to vlan_tx_tag_present(skb) This allows libpcap/tcpdump to use a kernel filter instead of having to fallback to accept all packets, then filter them in user space. Signed-off-by: Eric Dumazet Suggested-by: Ani Sinha Suggested-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed