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. LDPLDP fields¶ version
1len
Noneid
'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. LDPAddressLDPAddress fields¶ u
BitField(1 bit)0type
XBitField(15 bits)768len
Noneid
0address
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. LDPAddressWMLDPAddressWM fields¶ u
BitField(1 bit)0type
XBitField(15 bits)769len
Noneid
0address
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. LDPHelloLDPHello fields¶ u
BitField(1 bit)0type
BitField(15 bits)256len
Noneid
0params
[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. LDPInitLDPInit fields¶ u
BitField(1 bit)0type
XBitField(15 bits)512len
Noneid
0params
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. LDPKeepAliveLDPKeepAlive fields¶ u
BitField(1 bit)0type
XBitField(15 bits)513len
Noneid
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. LDPLabelARMLDPLabelARM fields¶ u
BitField(1 bit)0type
XBitField(15 bits)1028len
Noneid
0fec
NonelabelRMid
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. LDPLabelMMLDPLabelMM fields¶ u
BitField(1 bit)0type
XBitField(15 bits)1024len
Noneid
0fec
Nonelabel
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. LDPLabelRelMLDPLabelRelM fields¶ u
BitField(1 bit)0type
XBitField(15 bits)1027len
Noneid
0fec
Nonelabel
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. LDPLabelReqMLDPLabelReqM fields¶ u
BitField(1 bit)0type
XBitField(15 bits)1025len
Noneid
0fec
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. LDPLabelWMLDPLabelWM fields¶ u
BitField(1 bit)0type
XBitField(15 bits)1026len
Noneid
0fec
Nonelabel
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. LDPNotificationLDPNotification fields¶ u
BitField(1 bit)0type
BitField(15 bits)1len
Noneid
0status
(0, 0, 0, 0, 0)
-