1 / 3

dst mac

dst mac. src mac. etype. struct ethhdr { unsigned char h_dest[ETH_ALEN]; unsigned char h_source[ETH_ALEN]; __be16 h_proto; }. dst mac. src mac. proto. TCI. etype. struct vlan_ethhdr {

Download Presentation

dst mac

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. dst mac src mac etype struct ethhdr { unsigned char h_dest[ETH_ALEN]; unsigned char h_source[ETH_ALEN]; __be16 h_proto; } dst mac src mac proto TCI etype struct vlan_ethhdr { unsigned char h_dest[ETH_ALEN]; unsigned char h_source[ETH_ALEN]; __be16 h_vlan_proto; //0x8100 __be16 h_vlan_TCI; 1-12 VID unsigned short h_vlan_encapsulated_proto; };

  2. process_backlog dev->poll dev->poll skb->dev skb->input_dev netif_receive_skb ip_recv vlan_skb_recv remove vlan header

  3. VLAN ID vlan_group real device vlan device 0 vlan_skb_recv vlan device 1 ... ... VLAN ID vlan private

More Related