From: Phil Sutter Date: Fri, 2 Aug 2013 09:37:39 +0000 (+0200) Subject: af_packet: when sending ethernet frames, parse header for skb->protocol X-Git-Tag: v3.12-rc1~132^2~376 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f75b09c798ed00c30d7d5551b896be883bc2aeb;p=pandora-kernel.git af_packet: when sending ethernet frames, parse header for skb->protocol This may be necessary when the SKB is passed to other layers on the go, which check the protocol field on their own. An example is a VLAN packet sent out using AF_PACKET on a bridge interface. The bridging code checks the SKB size, accounting for any VLAN header only if the protocol field is set accordingly. Note that eth_type_trans() sets skb->dev to the passed argument, so this can be skipped in packet_snd() for ethernet frames, as well. Signed-off-by: Phil Sutter Signed-off-by: David S. Miller --- Reading git-diff-tree failed