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'')[source]

Bases: 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. BIER                             
BIER fields

id

BitField (4 bits)

5

version

BitField (4 bits)

0

length

BitFieldLenField (4 bits)

2

entropy

BitField (20 bits)

0

OAM

BitField (2 bits)

0

RSV

BitField (2 bits)

0

DSCP

BitField (6 bits)

0

Proto

BitEnumField

2

BFRID

ShortField

0

BitString

StrLenField

b''

payload_guess

Possible sublayers: IP, IPv6

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(_pkt, /, *, bsl=2, sd=0, set=0, cos=0, s=1, ttl=0)[source]

Bases: 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. BIFT                             
BIFT fields

bsl

BitField (4 bits)

2

sd

BitField (8 bits)

0

set

BitField (8 bits)

0

cos

BitField (3 bits)

0

s

BitField (1 bit)

1

ttl

ByteField

0

payload_guess

Possible sublayers: BIER