scapy.contrib.bier
- class scapy.contrib.bier.BIER(*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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID |VERSION| LENGTH| ENTROPY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |OAM|RSV| DSCP | PROTO | BFRID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | BITSTRING | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. BIERBIER fields id
BitField(4 bits)5version
BitField(4 bits)0length
BitFieldLenField(4 bits)2entropy
BitField(20 bits)0OAM
BitField(2 bits)0RSV
BitField(2 bits)0DSCP
BitField(6 bits)0Proto
2BFRID
0BitString
b''
- class scapy.contrib.bier.BIERLength[source]
Bases:
object- BIER_LEN_1024 = 4
- BIER_LEN_128 = 1
- BIER_LEN_256 = 2
- BIER_LEN_512 = 3
- BIER_LEN_64 = 0
- class scapy.contrib.bier.BIFT(*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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | BSL | SD | SET | COS |S| TTL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. BIFTBIFT fields bsl
BitField(4 bits)2sd
BitField(8 bits)0set
BitField(8 bits)0cos
BitField(3 bits)0s
BitField(1 bit)1ttl
0