Skip to contentSkip to conversation

: Add vlan tag into PACKET_AUXDATA

PATCH Applied Joonwoo Park 1 participant 1 message Apr 11, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/5 : Add vlan tag into PACKET_AUXDATA

The hardware vlan acceleration feature of netdev strips vlan tag. This patch put the tag into auxdata if it was stripped. Since the skb->cb has no additional room for the tag, this patch eliminates sll_family from the skb->cb which is AF_PACKET always.

---
 include/linux/if_packet.h |    1 +
 net/packet/af_packet.c    |   78 +++++++++++++++++++++++++++++++++++----------
 2 files changed, 62 insertions(+), 17 deletions(-)
include/linux/if_packet.h +1 -0
index ad09609..08ba915 100644
@@ -57,6 +57,7 @@ struct tpacket_auxdata
 	__u32		tp_snaplen;
 	__u16		tp_mac;
 	__u16		tp_net;
+	__u16		tp_vlan_TCI;
 };
 
 struct tpacket_hdr
net/packet/af_packet.c +61 -17

151 lines not on this page · raw message

Signature · 1 line
1.5.4.3