scapy.contrib.erspan
ERSPAN - Encapsulated Remote SPAN
- class scapy.contrib.erspan.ERSPAN(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.PacketA generic ERSPAN packet, pointing by default to ERSPAN II
- aliastypes
- fields_desc
- class scapy.contrib.erspan.ERSPAN_I(*args: Any, **kargs: Any)[source]
Bases:
scapy.contrib.erspan.ERSPAN- aliastypes
- fields_desc
- match_subclass = True
- class scapy.contrib.erspan.ERSPAN_II(*args: Any, **kargs: Any)[source]
Bases:
scapy.contrib.erspan.ERSPAN- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VER | VLAN | COS | EN|T| SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | INDEX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ERSPAN_IIERSPAN_II fields ver
BitField(4 bits)0vlan
BitField(12 bits)0cos
BitField(3 bits)0en
BitField(2 bits)0t
BitField(1 bit)0session_id
BitField(10 bits)0reserved
BitField(12 bits)0index
BitField(20 bits)0
- match_subclass = True
- class scapy.contrib.erspan.ERSPAN_III(*args: Any, **kargs: Any)[source]
Bases:
scapy.contrib.erspan.ERSPAN- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VER | VLAN | COS |BSO|T| SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TIMESTAMP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SGT OTHER |P| FT | HW |D|GRA|O| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ERSPAN_IIIERSPAN_III fields ver
BitField(4 bits)2vlan
BitField(12 bits)0cos
BitField(3 bits)0bso
BitField(2 bits)0t
BitField(1 bit)0session_id
BitField(10 bits)0timestamp
0sgt_other
0p
BitField(1 bit)0ft
0hw
BitField(6 bits)0d
BitField(1 bit)0gra
0o
BitField(1 bit)0
- match_subclass = True
- payload_guess
Possible sublayers:
ERSPAN_PlatformSpecific,Ether
- class scapy.contrib.erspan.ERSPAN_PlatformSpecific(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.Packet- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PLATF ID | INFO1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INFO2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ERSPAN_PlatformSpecificERSPAN_PlatformSpecific fields platf_id
BitField(6 bits)0info1
BitField(26 bits)0info2
0