PDA

View Full Version : Best way to extract vlan Tci from skb



joyboyhardik@yahoo.com
February 7th, 2012, 02:20 AM
Hi

I want to forward packets which are vlan tagged through vlan_hwaccel_rx

Now the device has vlangroup (neccesary field to pass) but i am not sure how to extract the vlan id from skb->data. are there any methods which shall do that .

Example:

skb->protocol = eth_type_trans(skb, tun->dev); // shall return the protocol.


Regards and Thanks