@@ -138,6 +138,7 @@ def i2m(self, pkt, x):
138
138
139
139
### Layers
140
140
141
+ ETHER_TYPES ['802_AD' ] = 0x88a8
141
142
142
143
class Ether (Packet ):
143
144
name = "Ethernet"
@@ -592,23 +593,31 @@ def post_build(self, p, pay):
592
593
return p
593
594
594
595
596
+ class Dot1AD (Dot1Q ):
597
+ name = '802_1AD'
595
598
596
599
597
600
bind_layers ( Dot3 , LLC , )
598
601
bind_layers ( Ether , LLC , type = 122 )
599
602
bind_layers ( Ether , LLC , type = 34928 )
600
603
bind_layers ( Ether , Dot1Q , type = 33024 )
604
+ bind_layers ( Ether , Dot1AD , type = 0x88a8 )
605
+ bind_layers ( Dot1AD , Dot1AD , type = 0x88a8 )
606
+ bind_layers ( Dot1AD , Dot1Q , type = 0x8100 )
607
+ bind_layers ( Dot1Q , Dot1AD , type = 0x88a8 )
601
608
bind_layers ( Ether , Ether , type = 1 )
602
609
bind_layers ( Ether , ARP , type = 2054 )
603
610
bind_layers ( Ether , EAPOL , type = 34958 )
604
611
bind_layers ( Ether , EAPOL , dst = '01:80:c2:00:00:03' , type = 34958 )
605
612
bind_layers ( CookedLinux , LLC , proto = 122 )
606
613
bind_layers ( CookedLinux , Dot1Q , proto = 33024 )
614
+ bind_layers ( CookedLinux , Dot1AD , type = 0x88a8 )
607
615
bind_layers ( CookedLinux , Ether , proto = 1 )
608
616
bind_layers ( CookedLinux , ARP , proto = 2054 )
609
617
bind_layers ( CookedLinux , EAPOL , proto = 34958 )
610
618
bind_layers ( GRE , LLC , proto = 122 )
611
619
bind_layers ( GRE , Dot1Q , proto = 33024 )
620
+ bind_layers ( GRE , Dot1AD , type = 0x88a8 )
612
621
bind_layers ( GRE , Ether , proto = 1 )
613
622
bind_layers ( GRE , ARP , proto = 2054 )
614
623
bind_layers ( GRE , EAPOL , proto = 34958 )
@@ -621,6 +630,7 @@ def post_build(self, p, pay):
621
630
bind_layers ( LLC , STP , dsap = 66 , ssap = 66 , ctrl = 3 )
622
631
bind_layers ( LLC , SNAP , dsap = 170 , ssap = 170 , ctrl = 3 )
623
632
bind_layers ( SNAP , Dot1Q , code = 33024 )
633
+ bind_layers ( SNAP , Dot1AD , type = 0x88a8 )
624
634
bind_layers ( SNAP , Ether , code = 1 )
625
635
bind_layers ( SNAP , ARP , code = 2054 )
626
636
bind_layers ( SNAP , EAPOL , code = 34958 )
0 commit comments