scapy.contrib.bier
- class scapy.contrib.bier.BIER(_pkt, /, *, id=5, version=0, length=2, entropy=0, OAM=0, RSV=0, DSCP=0, Proto=2, BFRID=0, BitString=b'')[源代码]
基类:
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[源代码]
基类:
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(_pkt, /, *, bsl=2, sd=0, set=0, cos=0, s=1, ttl=0)[源代码]
基类:
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