scapy.contrib.rtr¶
-
class
scapy.contrib.rtr.RTR(*args, **kargs)¶ Bases:
scapy.packet.PacketDummy RPKI to Router generic packet for pre-sorting the packet type eg. https://tools.ietf.org/html/rfc6810#section-5.2
-
aliastypes¶
-
classmethod
dispatch_hook(_pkt=None, *args, **kargs)¶ Attribution of correct type depending on version and pdu_type
-
-
class
scapy.contrib.rtr.RTRCacheReset(*args, **kargs)¶ Bases:
scapy.packet.PacketCache Reset packet from section 5.9 https://tools.ietf.org/html/rfc6810#section-5.9
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRCacheResetRTRCacheReset fields¶ rtr_version
0pdu_type
8reserved
0length
8
-
-
class
scapy.contrib.rtr.RTRCacheResponse(*args, **kargs)¶ Bases:
scapy.packet.PacketCache Response packet from section 5.5 https://tools.ietf.org/html/rfc6810#section-5.5
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRCacheResponseRTRCacheResponse fields¶ rtr_version
0pdu_type
3session_id
0length
8
-
guess_payload_class(payload)¶
-
-
class
scapy.contrib.rtr.RTREndofDatav0(*args, **kargs)¶ Bases:
scapy.packet.PacketEnd of Data packet from version 0 standard section 5.8 https://tools.ietf.org/html/rfc6810#section-5.8
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERIAL NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTREndofDatav0RTREndofDatav0 fields¶ rtr_version
0pdu_type
7session_id
0length
12serial_number
0
-
-
class
scapy.contrib.rtr.RTREndofDatav1(*args, **kargs)¶ Bases:
scapy.packet.PacketEnd of Data packet from version 1 standard section 5.8 https://tools.ietf.org/html/rfc8210#section-5.8
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERIAL NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | REFRESH INTERVAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RETRY INTERVAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | EXPIRE INTERVAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTREndofDatav1RTREndofDatav1 fields¶ rtr_version
1pdu_type
7session_id
0length
24serial_number
0refresh_interval
0retry_interval
0expire_interval
0
-
-
class
scapy.contrib.rtr.RTRErrorReport(*args, **kargs)¶ Bases:
scapy.packet.PacketError Report packet from section 5.10 https://tools.ietf.org/html/rfc6810#section-5.10
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | ERROR CODE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH OF ENCAPS PDU | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ERRONEOUS PDU | LENGTH OF ERROR TEXT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ERROR TEXT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRErrorReportRTRErrorReport fields¶ rtr_version
0pdu_type
10error_code
0length
Nonelength_of_encaps_PDU
Noneerroneous_PDU
b''length_of_error_text
Noneerror_text
b''
-
post_build(pkt, pay)¶
-
-
class
scapy.contrib.rtr.RTRIPv4Prefix(*args, **kargs)¶ Bases:
scapy.packet.PacketIPv4 Prefix packet from section 5.6 https://tools.ietf.org/html/rfc6810#section-5.6
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FLAGS |SHORTEST LENGTH| LONGEST LENGTH| ZEROS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ASN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRIPv4PrefixRTRIPv4Prefix fields¶ rtr_version
0pdu_type
4reserved
0length
20flags
0shortest_length
0longest_length
0zeros
0prefix
'0.0.0.0'asn
0
-
guess_payload_class(payload)¶
-
-
class
scapy.contrib.rtr.RTRIPv6Prefix(*args, **kargs)¶ Bases:
scapy.packet.PacketIPv6 Prefix packet from section 5.7 https://tools.ietf.org/html/rfc6810#section-5.7
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FLAGS |SHORTEST LENGTH| LONGEST LENGTH| ZEROS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ASN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRIPv6PrefixRTRIPv6Prefix fields¶ rtr_version
0pdu_type
6reserved
0length
32flags
0shortest_length
0longest_length
0zeros
0prefix
'::'asn
0
-
guess_payload_class(payload)¶
-
-
class
scapy.contrib.rtr.RTRResetQuery(*args, **kargs)¶ Bases:
scapy.packet.PacketReset Query packet from section 5.4 https://tools.ietf.org/html/rfc6810#section-5.4
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRResetQueryRTRResetQuery fields¶ rtr_version
0pdu_type
2reserved
0length
8
-
-
class
scapy.contrib.rtr.RTRRouterKey(*args, **kargs)¶ Bases:
scapy.packet.PacketRouter Key packet from version 1 standard section 5.10 https://tools.ietf.org/html/rfc8210#section-5.10
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | FLAGS | ZEROS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SUBJECT KEY IDENTIFIER | ASN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | SUBJECT PKI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRRouterKeyRTRRouterKey fields¶ rtr_version
1pdu_type
9flags
0zeros
0length
Nonesubject_key_identifier
b''asn
0subject_PKI
b''
-
post_build(pkt, pay)¶
-
-
class
scapy.contrib.rtr.RTRSerialNotify(*args, **kargs)¶ Bases:
scapy.packet.PacketSerial Notify packet from section 5.2 https://tools.ietf.org/html/rfc6810#section-5.2
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERIAL NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRSerialNotifyRTRSerialNotify fields¶ rtr_version
0pdu_type
0session_id
0length
12serial_number
0
-
-
class
scapy.contrib.rtr.RTRSerialQuery(*args, **kargs)¶ Bases:
scapy.packet.PacketSerial Query packet from section 5.3 https://tools.ietf.org/html/rfc6810#section-5.3
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTR VERSION | PDU TYPE | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERIAL NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RTRSerialQueryRTRSerialQuery fields¶ rtr_version
0pdu_type
1session_id
0length
12serial_number
0
-