scapy.contrib.isis
IS-IS Scapy Extension
- authors:
Marcel Patzlaff, mpatzlaff@benocs.com Michal Kaliszan, mkaliszan@benocs.com Tom Zhu, tom.zhu@metaswitch.com
- description:
This module provides Scapy layers for the Intermediate System to Intermediate System routing protocol as defined in RFC 1195.
Currently it (partially) supports the packaging/encoding requirements of the following RFCs: * RFC 1195 (only the TCP/IP related part) * RFC 3358 (optional checksums) * RFC 5301 (dynamic hostname extension) * RFC 5302 (domain-wide prefix distribution) * RFC 5303 (three-way handshake) * RFC 5304 (cryptographic authentication) * RFC 5308 (routing IPv6 with IS-IS) * RFC 8667 (IS-IS extensions for segment routing)
- TODO:
packet relations (requests, responses)
support for recent RFCs: * RFC 5305 (traffic engineering) * RFC 5307 (support for G-MPLS) * RFC 5310 (generic cryptographic authentication) * RFC 5316 (inter-AS MPLS and G-MPLS TE)
- class scapy.contrib.isis.ISIS_32bitAdministrativeTagSubTlv(_pkt, /, *, type=1, len=None, tags=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | TAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_32bitAdministrativeTagSubTlvISIS_32bitAdministrativeTagSubTlv fields type
1len
Nonetags
[]
- class scapy.contrib.isis.ISIS_64bitAdministrativeTagSubTlv(_pkt, /, *, type=2, len=None, tags=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | TAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_64bitAdministrativeTagSubTlvISIS_64bitAdministrativeTagSubTlv fields type
2len
Nonetags
[]
- class scapy.contrib.isis.ISIS_AdministrativeGroupSubTlv(_pkt, /, *, code=3, len=None, admingroup='0.0.0.1')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CODE | LEN | ADMINGROUP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_AdministrativeGroupSubTlvISIS_AdministrativeGroupSubTlv fields code
3len
Noneadmingroup
'0.0.0.1'
- class scapy.contrib.isis.ISIS_AreaEntry(_pkt, /, *, arealen=None, areaid='49')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AREALEN | AREAID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_AreaEntryISIS_AreaEntry fields arealen
Noneareaid
'49'
- class scapy.contrib.isis.ISIS_AreaTlv(_pkt, /, *, type=1, len=None, areas=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | AREAS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_AreaTlvISIS_AreaTlv fields type
1len
Noneareas
[]
- class scapy.contrib.isis.ISIS_AuthenticationTlv(_pkt, /, *, type=10, len=None, authtype=1, password=b'')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | AUTHTYPE | PASSWORD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_AuthenticationTlvISIS_AuthenticationTlv fields type
10len
Noneauthtype
1password
b''
- class scapy.contrib.isis.ISIS_BufferSizeTlv(_pkt, /, *, type=14, len=2, lspbuffersize=1497)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | LSPBUFFERSIZE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_BufferSizeTlvISIS_BufferSizeTlv fields type
14len
2lspbuffersize
1497
- class scapy.contrib.isis.ISIS_ChecksumTlv(_pkt, /, *, type=12, len=2, checksum=None)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | CHECKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ChecksumTlvISIS_ChecksumTlv fields type
12len
2checksum
None
- class scapy.contrib.isis.ISIS_CircuitTypeField(name='circuittype', default=2, size=8, names=None)[源代码]
基类:
FlagsField
- class scapy.contrib.isis.ISIS_CommonHdr(_pkt, /, *, nlpid=131, hdrlen=None, version=1, idlen=0, pdutype=None, pduversion=1, hdrreserved=0, maxareaaddr=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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NLPID | HDRLEN | VERSION | IDLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDUTYPE | PDUVERSION | HDRRESERVED | MAXAREAADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_CommonHdrISIS_CommonHdr fields nlpid
131hdrlen
Noneversion
1idlen
0pdutype
Nonepduversion
1hdrreserved
0maxareaaddr
0
- payload_guess
Possible sublayers:
ISIS_L1_CSNP,ISIS_L1_LAN_Hello,ISIS_L1_LSP,ISIS_L1_PSNP,ISIS_L2_CSNP,ISIS_L2_LAN_Hello,ISIS_L2_LSP,ISIS_L2_PSNP,ISIS_P2P_Hello
- class scapy.contrib.isis.ISIS_DynamicHostnameTlv(_pkt, /, *, type=137, len=None, hostname=b'')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | HOSTNAME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_DynamicHostnameTlvISIS_DynamicHostnameTlv fields type
137len
Nonehostname
b''
- class scapy.contrib.isis.ISIS_ExtendedIpPrefix(_pkt, /, *, metric=1, updown=0, subtlvindicator=0, pfxlen=None, pfx=('0.0.0.0', 1), subtlvslen=None, subtlvs=[])[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | METRIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U|S| PFXLEN | PFX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | SUBTLVSLEN | SUBTLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ExtendedIpPrefixISIS_ExtendedIpPrefix fields metric
1updown
BitField(1 bit)0subtlvindicator
BitField(1 bit)0pfxlen
BitFieldLenField(6 bits)Nonepfx
('0.0.0.0', 1)subtlvslen
FieldLenField(Cond)Nonesubtlvs
PacketListField(Cond)[]
- class scapy.contrib.isis.ISIS_ExtendedIpReachabilityTlv(_pkt, /, *, type=135, len=None, pfxs=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PFXS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ExtendedIpReachabilityTlvISIS_ExtendedIpReachabilityTlv fields type
135len
Nonepfxs
[]
- class scapy.contrib.isis.ISIS_ExtendedIsNeighbourEntry(_pkt, /, *, neighbourid='0102.0304.0506.07', metric=1, subtlvslen=None, subtlvs=[])[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEIGHBOURID | + +-+-+-+-+-+-+-+-+ | | METRIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | SUBTLVSLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SUBTLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ExtendedIsNeighbourEntryISIS_ExtendedIsNeighbourEntry fields neighbourid
'0102.0304.0506.07'metric
1subtlvslen
Nonesubtlvs
[]
- class scapy.contrib.isis.ISIS_ExtendedIsReachabilityTlv(_pkt, /, *, type=22, len=None, neighbours=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | NEIGHBOURS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ExtendedIsReachabilityTlvISIS_ExtendedIsReachabilityTlv fields type
22len
Noneneighbours
[]
- class scapy.contrib.isis.ISIS_ExternalIpReachabilityTlv(_pkt, /, *, type=130, len=None, entries=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ENTRIES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ExternalIpReachabilityTlvISIS_ExternalIpReachabilityTlv fields type
130len
Noneentries
[]
- class scapy.contrib.isis.ISIS_GenericSubTlv(_pkt, /, *, type=0, len=None, val=b'')[源代码]
基类:
_ISIS_GenericTlv_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | VAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_GenericSubTlvISIS_GenericSubTlv fields type
0len
Noneval
b''
- class scapy.contrib.isis.ISIS_GenericTlv(_pkt, /, *, type=0, len=None, val=b'')[源代码]
基类:
_ISIS_GenericTlv_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | VAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_GenericTlvISIS_GenericTlv fields type
0len
Noneval
b''
- class scapy.contrib.isis.ISIS_IPv4InterfaceAddressSubTlv(_pkt, /, *, type=6, len=None, address='0.0.0.0')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IPv4InterfaceAddressSubTlvISIS_IPv4InterfaceAddressSubTlv fields type
6len
Noneaddress
'0.0.0.0'
- class scapy.contrib.isis.ISIS_IPv4NeighborAddressSubTlv(_pkt, /, *, type=8, len=None, address='0.0.0.0')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IPv4NeighborAddressSubTlvISIS_IPv4NeighborAddressSubTlv fields type
8len
Noneaddress
'0.0.0.0'
- class scapy.contrib.isis.ISIS_IPv6InterfaceAddressSubTlv(_pkt, /, *, type=12, len=None, address='::')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IPv6InterfaceAddressSubTlvISIS_IPv6InterfaceAddressSubTlv fields type
12len
Noneaddress
'::'
- class scapy.contrib.isis.ISIS_IPv6NeighborAddressSubTlv(_pkt, /, *, type=13, len=None, address='::')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IPv6NeighborAddressSubTlvISIS_IPv6NeighborAddressSubTlv fields type
13len
Noneaddress
'::'
- class scapy.contrib.isis.ISIS_InternalIpReachabilityTlv(_pkt, /, *, type=128, len=None, entries=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ENTRIES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_InternalIpReachabilityTlvISIS_InternalIpReachabilityTlv fields type
128len
Noneentries
[]
- class scapy.contrib.isis.ISIS_IpInterfaceAddressTlv(_pkt, /, *, type=132, len=None, addresses=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ADDRESSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IpInterfaceAddressTlvISIS_IpInterfaceAddressTlv fields type
132len
Noneaddresses
[]
- class scapy.contrib.isis.ISIS_IpReachabilityEntry(_pkt, /, *, defmetric=1, delmetric=128, expmetric=128, errmetric=128, ipaddress='0.0.0.0', subnetmask='255.255.255.255')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DEFMETRIC | DELMETRIC | EXPMETRIC | ERRMETRIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IPADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SUBNETMASK | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IpReachabilityEntryISIS_IpReachabilityEntry fields defmetric
1delmetric
128expmetric
128errmetric
128ipaddress
'0.0.0.0'subnetmask
'255.255.255.255'
- class scapy.contrib.isis.ISIS_Ipv6InterfaceAddressTlv(_pkt, /, *, type=232, len=None, addresses=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ADDRESSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_Ipv6InterfaceAddressTlvISIS_Ipv6InterfaceAddressTlv fields type
232len
Noneaddresses
[]
- class scapy.contrib.isis.ISIS_Ipv6Prefix(_pkt, /, *, metric=1, updown=0, external=0, subtlvindicator=0, reserved=0, pfxlen=None, pfx=('::', 1), subtlvslen=None, subtlvs=[])[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | METRIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |U|E|S| RESERVED| PFXLEN | PFX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | SUBTLVSLEN | SUBTLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_Ipv6PrefixISIS_Ipv6Prefix fields metric
1updown
BitField(1 bit)0external
BitField(1 bit)0subtlvindicator
BitField(1 bit)0reserved
BitField(5 bits)0pfxlen
Nonepfx
('::', 1)subtlvslen
FieldLenField(Cond)Nonesubtlvs
PacketListField(Cond)[]
- class scapy.contrib.isis.ISIS_Ipv6ReachabilityTlv(_pkt, /, *, type=236, len=None, pfxs=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PFXS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_Ipv6ReachabilityTlvISIS_Ipv6ReachabilityTlv fields type
236len
Nonepfxs
[]
- class scapy.contrib.isis.ISIS_IsNeighbourTlv(_pkt, /, *, type=6, len=None, neighbours=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | NEIGHBOURS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IsNeighbourTlvISIS_IsNeighbourTlv fields type
6len
Noneneighbours
[]
- class scapy.contrib.isis.ISIS_IsReachabilityEntry(_pkt, /, *, defmetric=1, delmetric=128, expmetric=128, errmetric=128, neighbourid='0102.0304.0506.07')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DEFMETRIC | DELMETRIC | EXPMETRIC | ERRMETRIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEIGHBOURID | + +-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_IsReachabilityEntryISIS_IsReachabilityEntry fields defmetric
1delmetric
128expmetric
128errmetric
128neighbourid
'0102.0304.0506.07'
- class scapy.contrib.isis.ISIS_IsReachabilityTlv(_pkt, /, *, type=2, len=None, virtual=0, neighbours=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | VIRTUAL | NEIGHBOURS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_IsReachabilityTlvISIS_IsReachabilityTlv fields type
2len
Nonevirtual
0neighbours
[]
- class scapy.contrib.isis.ISIS_L1_CSNP(_pkt, /, *, pdulength=None, sourceid='0102.0304.0506.00', startlspid='0000.0000.0000.00-00', endlspid='FFFF.FFFF.FFFF.FF-FF', tlvs=[])[源代码]
基类:
_ISIS_CSNP_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDULENGTH | SOURCEID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | STARTLSPID | +-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ENDLSPID | +-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_L1_CSNPISIS_L1_CSNP fields pdulength
_ISIS_PduLengthFieldNonesourceid
'0102.0304.0506.00'startlspid
'0000.0000.0000.00-00'endlspid
'FFFF.FFFF.FFFF.FF-FF'tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L1_LAN_Hello(_pkt, /, *, circuittype=<Flag 2 (L2)>, sourceid='0102.0304.0506', holdingtime=30, pdulength=None, priority=1, lanid='0000.0000.0000.00', tlvs=[])[源代码]
基类:
_ISIS_LAN_HelloBase- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CIRCUITTYPE | SOURCEID | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | HOLDINGTIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PDULENGTH | PRIORITY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LANID | + +-+-+-+-+-+-+-+-+ | | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_L1_LAN_HelloISIS_L1_LAN_Hello fields circuittype
<Flag 2 (L2)>sourceid
'0102.0304.0506'holdingtime
30pdulength
_ISIS_PduLengthFieldNonepriority
1lanid
'0000.0000.0000.00'tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L1_LSP(_pkt, /, *, pdulength=None, lifetime=1199, lspid='0102.0304.0506.00-00', seqnum=1, checksum=None, typeblock=<Flag 3 (L1+L2)>, tlvs=[])[源代码]
基类:
_ISIS_LSP_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDULENGTH | LIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LSPID | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEQNUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHECKSUM | TYPEBLOCK | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_L1_LSPISIS_L1_LSP fields pdulength
_ISIS_PduLengthFieldNonelifetime
1199lspid
'0102.0304.0506.00-00'seqnum
1checksum
Nonetypeblock
<Flag 3 (L1+L2)>tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L1_PSNP(_pkt, /, *, pdulength=None, sourceid='0102.0304.0506.00', tlvs=[])[源代码]
基类:
_ISIS_PSNP_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDULENGTH | SOURCEID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_L1_PSNPISIS_L1_PSNP fields pdulength
_ISIS_PduLengthFieldNonesourceid
'0102.0304.0506.00'tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L2_CSNP(_pkt, /, *, pdulength=None, sourceid='0102.0304.0506.00', startlspid='0000.0000.0000.00-00', endlspid='FFFF.FFFF.FFFF.FF-FF', tlvs=[])[源代码]
基类:
_ISIS_CSNP_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDULENGTH | SOURCEID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | STARTLSPID | +-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ENDLSPID | +-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_L2_CSNPISIS_L2_CSNP fields pdulength
_ISIS_PduLengthFieldNonesourceid
'0102.0304.0506.00'startlspid
'0000.0000.0000.00-00'endlspid
'FFFF.FFFF.FFFF.FF-FF'tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L2_LAN_Hello(_pkt, /, *, circuittype=<Flag 2 (L2)>, sourceid='0102.0304.0506', holdingtime=30, pdulength=None, priority=1, lanid='0000.0000.0000.00', tlvs=[])[源代码]
基类:
_ISIS_LAN_HelloBase- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CIRCUITTYPE | SOURCEID | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | HOLDINGTIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PDULENGTH | PRIORITY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LANID | + +-+-+-+-+-+-+-+-+ | | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_L2_LAN_HelloISIS_L2_LAN_Hello fields circuittype
<Flag 2 (L2)>sourceid
'0102.0304.0506'holdingtime
30pdulength
_ISIS_PduLengthFieldNonepriority
1lanid
'0000.0000.0000.00'tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L2_LSP(_pkt, /, *, pdulength=None, lifetime=1199, lspid='0102.0304.0506.00-00', seqnum=1, checksum=None, typeblock=<Flag 3 (L1+L2)>, tlvs=[])[源代码]
基类:
_ISIS_LSP_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDULENGTH | LIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LSPID | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEQNUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHECKSUM | TYPEBLOCK | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_L2_LSPISIS_L2_LSP fields pdulength
_ISIS_PduLengthFieldNonelifetime
1199lspid
'0102.0304.0506.00-00'seqnum
1checksum
Nonetypeblock
<Flag 3 (L1+L2)>tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_L2_PSNP(_pkt, /, *, pdulength=None, sourceid='0102.0304.0506.00', tlvs=[])[源代码]
基类:
_ISIS_PSNP_Base- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDULENGTH | SOURCEID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_L2_PSNPISIS_L2_PSNP fields pdulength
_ISIS_PduLengthFieldNonesourceid
'0102.0304.0506.00'tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_LinkLocalRemoteIdentifiersSubTlv(_pkt, /, *, type=4, len=8, localid='0', remoteid='0')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | LOCALID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | REMOTEID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_LinkLocalRemoteIdentifiersSubTlvISIS_LinkLocalRemoteIdentifiersSubTlv fields type
4len
8localid
'0'remoteid
'0'
- class scapy.contrib.isis.ISIS_LspEntry(_pkt, /, *, lifetime=1200, lspid='0102.0304.0506.07-08', seqnum=1, checksum=None)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LIFETIME | LSPID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | SEQNUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | CHECKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_LspEntryISIS_LspEntry fields lifetime
1200lspid
'0102.0304.0506.07-08'seqnum
1checksum
None
- class scapy.contrib.isis.ISIS_LspEntryTlv(_pkt, /, *, type=9, len=None, entries=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ENTRIES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_LspEntryTlvISIS_LspEntryTlv fields type
9len
Noneentries
[]
- class scapy.contrib.isis.ISIS_MaximumLinkBandwidthSubTlv(_pkt, /, *, type=9, len=None, maxbw=1000)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | MAXBW | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_MaximumLinkBandwidthSubTlvISIS_MaximumLinkBandwidthSubTlv fields type
9len
Nonemaxbw
1000
- class scapy.contrib.isis.ISIS_MaximumReservableLinkBandwidthSubTlv(_pkt, /, *, type=10, len=None, maxrsvbw=1000)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | MAXRSVBW | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_MaximumReservableLinkBandwidthSubTlvISIS_MaximumReservableLinkBandwidthSubTlv fields type
10len
Nonemaxrsvbw
1000
- class scapy.contrib.isis.ISIS_P2PAdjacencyStateTlv(_pkt, /, *, type=240, len=None, state=2, extlocalcircuitid=None, neighboursystemid=None, neighbourextlocalcircuitid=None)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | STATE |EXTLOCALCIRCUIT| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |NEIGHBOURSYSTEM| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | NEIGHBOUREXTLOCALCIRCUITID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_P2PAdjacencyStateTlvISIS_P2PAdjacencyStateTlv fields type
240len
_AdjacencyStateTlvLenFieldNonestate
2extlocalcircuitid
IntField(Cond)Noneneighboursystemid
ISIS_SystemIdField(Cond)Noneneighbourextlocalcircuitid
IntField(Cond)None
- class scapy.contrib.isis.ISIS_P2P_Hello(_pkt, /, *, circuittype=<Flag 2 (L2)>, sourceid='0102.0304.0506', holdingtime=30, pdulength=None, localcircuitid=0, tlvs=[])[源代码]
基类:
_ISIS_PduBase- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CIRCUITTYPE | SOURCEID | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | HOLDINGTIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PDULENGTH | LOCALCIRCUITID| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_P2P_HelloISIS_P2P_Hello fields circuittype
<Flag 2 (L2)>sourceid
'0102.0304.0506'holdingtime
30pdulength
_ISIS_PduLengthFieldNonelocalcircuitid
0tlvs
_ISIS_TlvListField[]
- class scapy.contrib.isis.ISIS_PaddingTlv(_pkt, /, *, type=8, len=None, padding=b'')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PADDING | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_PaddingTlvISIS_PaddingTlv fields type
8len
Nonepadding
b''
- class scapy.contrib.isis.ISIS_PrefixSegmentIdentifierSubTlv(_pkt, /, *, type=3, len=5, flags=<Flag 0 ()>, algorithm=0, sid=0, idx=0)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | FLAGS | ALGORITHM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IDX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_PrefixSegmentIdentifierSubTlvISIS_PrefixSegmentIdentifierSubTlv fields type
3len
5flags
<Flag 0 ()>algorithm
0sid
ThreeBytesField(Cond)0idx
IntField(Cond)0
- class scapy.contrib.isis.ISIS_ProtocolsSupportedTlv(_pkt, /, *, type=129, len=None, nlpids=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | NLPIDS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_ProtocolsSupportedTlvISIS_ProtocolsSupportedTlv fields type
129len
Nonenlpids
[]
- class scapy.contrib.isis.ISIS_RouterCapabilityTlv(_pkt, /, *, type=242, len=None, routerid='0.0.0.0', flags=<Flag 0 ()>, subtlvs=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ROUTERID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | FLAGS | SUBTLVS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_RouterCapabilityTlvISIS_RouterCapabilityTlv fields type
242len
Nonerouterid
'0.0.0.0'flags
<Flag 0 ()>subtlvs
[]
- class scapy.contrib.isis.ISIS_SIDLabelSubTLV(_pkt, /, *, type=1, len=3, sid=0, idx=0)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | SID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | IDX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_SIDLabelSubTLVISIS_SIDLabelSubTLV fields type
1len
3sid
ThreeBytesField(Cond)0idx
IntField(Cond)0
- class scapy.contrib.isis.ISIS_SRAlgorithmSubTLV(_pkt, /, *, type=19, len=None, algorithms=[0])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ALGORITHMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_SRAlgorithmSubTLVISIS_SRAlgorithmSubTLV fields type
19len
Nonealgorithms
[0]
- class scapy.contrib.isis.ISIS_SRCapabilitiesSubTLV(_pkt, /, *, type=2, len=None, flags=<Flag 0 ()>, srgb_ranges=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | FLAGS | SRGB RANGES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ISIS_SRCapabilitiesSubTLVISIS_SRCapabilitiesSubTLV fields type
2len
Noneflags
<Flag 0 ()>srgb_ranges
[]
- class scapy.contrib.isis.ISIS_SRGBDescriptorEntry(_pkt, /, *, range=0, sid_label=None)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RANGE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SID LABEL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_SRGBDescriptorEntryISIS_SRGBDescriptorEntry fields range
0sid_label
None
- class scapy.contrib.isis.ISIS_TEDefaultMetricSubTlv(_pkt, /, *, type=18, len=None, temetric=1000)[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | TEMETRIC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_TEDefaultMetricSubTlvISIS_TEDefaultMetricSubTlv fields type
18len
Nonetemetric
1000
- class scapy.contrib.isis.ISIS_TERouterIDTlv(_pkt, /, *, type=134, len=None, routerid='0.0.0.0')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | ROUTERID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_TERouterIDTlvISIS_TERouterIDTlv fields type
134len
Nonerouterid
'0.0.0.0'
- class scapy.contrib.isis.ISIS_UnreservedBandwidthSubTlv(_pkt, /, *, type=11, len=None, unrsvbw=[1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | UNRSVBW | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ISIS_UnreservedBandwidthSubTlvISIS_UnreservedBandwidthSubTlv fields type
11len
Noneunrsvbw
[1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000]