diff options
author | Phil Sutter <phil@nwl.cc> | 2013-08-02 11:37:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-02 14:58:32 -0700 |
commit | 0f75b09c798ed00c30d7d5551b896be883bc2aeb (patch) | |
tree | 9fc3da6d33d9ce15c1566e30f7bf13bfcefbc58c /REPORTING-BUGS | |
parent | d27fc78208b53ccdfd6a57d4ac44a459ca66806f (diff) | |
download | linux-0f75b09c798ed00c30d7d5551b896be883bc2aeb.tar.bz2 |
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 <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions