scapy.contrib.ldp
- class scapy.contrib.ldp.AddressTLVField(name, default, fmt='H', remain=0)
Bases:
scapy.fields.StrField
- getfield(pkt, s)
- i2m(pkt, x)
- islist = 1
- m2i(pkt, x)
- size(s)
Get the size of this field
- class scapy.contrib.ldp.CommonHelloTLVField(name, default, fmt='H', remain=0)
Bases:
scapy.fields.StrField
- getfield(pkt, s)
- i2m(pkt, x)
- islist = 1
- m2i(pkt, x)
- class scapy.contrib.ldp.CommonSessionTLVField(name, default, fmt='H', remain=0)
Bases:
scapy.fields.StrField
- getfield(pkt, s)
- i2m(pkt, x)
- islist = 1
- m2i(pkt, x)
- class scapy.contrib.ldp.FecTLVField(name, default, fmt='H', remain=0)
Bases:
scapy.fields.StrField
- getfield(pkt, s)
- i2m(pkt, x)
- islist = 1
- m2i(pkt, x)
- size(s)
Get the size of this field
- class scapy.contrib.ldp.LDP(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPACE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDP
LDP fields version
1
len
None
id
'127.0.0.1'
space
0
- post_build(p, pay)
- class scapy.contrib.ldp.LDPAddress(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPAddress
LDPAddress fields u
BitField
(1 bit)0
type
XBitField
(15 bits)768
len
None
id
0
address
None
- class scapy.contrib.ldp.LDPAddressWM(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPAddressWM
LDPAddressWM fields u
BitField
(1 bit)0
type
XBitField
(15 bits)769
len
None
id
0
address
None
- class scapy.contrib.ldp.LDPHello(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPHello
LDPHello fields u
BitField
(1 bit)0
type
BitField
(15 bits)256
len
None
id
0
params
[180, 0, 0]
- class scapy.contrib.ldp.LDPInit(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPInit
LDPInit fields u
BitField
(1 bit)0
type
XBitField
(15 bits)512
len
None
id
0
params
None
- class scapy.contrib.ldp.LDPKeepAlive(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPKeepAlive
LDPKeepAlive fields u
BitField
(1 bit)0
type
XBitField
(15 bits)513
len
None
id
0
- class scapy.contrib.ldp.LDPLabelARM(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FEC | LABELRMID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPLabelARM
LDPLabelARM fields u
BitField
(1 bit)0
type
XBitField
(15 bits)1028
len
None
id
0
fec
None
labelRMid
0
- class scapy.contrib.ldp.LDPLabelMM(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FEC | LABEL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPLabelMM
LDPLabelMM fields u
BitField
(1 bit)0
type
XBitField
(15 bits)1024
len
None
id
0
fec
None
label
0
- class scapy.contrib.ldp.LDPLabelRelM(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FEC | LABEL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPLabelRelM
LDPLabelRelM fields u
BitField
(1 bit)0
type
XBitField
(15 bits)1027
len
None
id
0
fec
None
label
0
- class scapy.contrib.ldp.LDPLabelReqM(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FEC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPLabelReqM
LDPLabelReqM fields u
BitField
(1 bit)0
type
XBitField
(15 bits)1025
len
None
id
0
fec
None
- class scapy.contrib.ldp.LDPLabelWM(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FEC | LABEL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPLabelWM
LDPLabelWM fields u
BitField
(1 bit)0
type
XBitField
(15 bits)1026
len
None
id
0
fec
None
label
0
- class scapy.contrib.ldp.LDPNotification(*args, **kargs)
Bases:
scapy.contrib.ldp._LDP_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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U| TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STATUS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LDPNotification
LDPNotification fields u
BitField
(1 bit)0
type
BitField
(15 bits)1
len
None
id
0
status
(0, 0, 0, 0, 0)