scapy.contrib.eigrp

EIGRP Scapy Extension

version:

2009-08-13

e-mail:

lobo@c3a.de / jochen.bartl@gmail.com

:TODO

Thanks:

  • TLV code derived from the CDP implementation of scapy. (Thanks to Nicolas Bareil and Arnaud Ebalard)

    http://trac.secdev.org/scapy/ticket/18

  • IOS / EIGRP Version Representation FIX by Dirk Loss

class scapy.contrib.eigrp.EIGRP(_pkt, /, *, ver=2, opcode=5, chksum=None, flags=<Flag 0 ()>, seq=0, ack=0, asn=100, tlvlist=[])[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      VER      |     OPCODE    |             CHKSUM            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             FLAGS                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              SEQ                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ACK                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ASN                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            TLVLIST            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                            Fig. EIGRP                            
EIGRP fields

ver

ByteField

2

opcode

ByteEnumField

5

chksum

XShortField

None

flags

FlagsField

<Flag 0 ()>

seq

IntField

0

ack

IntField

0

asn

IntField

100

tlvlist

PacketListField

[]

mysummary()[源代码]
post_build(p, pay)[源代码]
class scapy.contrib.eigrp.EIGRPAuthData(_pkt, /, *, type=2, len=None, authtype=2, keysize=None, keyid=1, nullpad=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', authdata=<RandString>)[源代码]

基类:EIGRPGeneric

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           |            KEYSIZE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             KEYID                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NULLPAD                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            AUTHDATA           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. EIGRPAuthData                        
EIGRPAuthData fields

type

XShortField

2

len

FieldLenField

None

authtype

ShortEnumField

2

keysize

ShortField

None

keyid

IntField

1

nullpad

StrFixedLenField

b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

authdata

StrLenField

<RandString>

post_build(p, pay)[源代码]
class scapy.contrib.eigrp.EIGRPExtRoute(_pkt, /, *, type=259, len=None, nexthop='192.168.0.0', originrouter='192.168.0.1', originasn=0, tag=0, externalmetric=0, reserved=0, extprotocolid=3, flags=<Flag 0 ()>, delay=0, bandwidth=256, mtu=1500, hopcount=0, reliability=255, load=0, reserved2=0, prefixlen=24, dst='192.168.1.0')[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NEXTHOP                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          ORIGINROUTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           ORIGINASN                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              TAG                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         EXTERNALMETRIC                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            RESERVED           | EXTPROTOCOLID |     FLAGS     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             DELAY                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BANDWIDTH                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              MTU                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    HOPCOUNT   |  RELIABILITY  |      LOAD     |   RESERVED2   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |   PREFIXLEN   |              DST              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. EIGRPExtRoute                        
EIGRPExtRoute fields

type

XShortField

259

len

FieldLenField

None

nexthop

IPField

'192.168.0.0'

originrouter

IPField

'192.168.0.1'

originasn

IntField

0

tag

IntField

0

externalmetric

IntField

0

reserved

ShortField

0

extprotocolid

ByteEnumField

3

flags

FlagsField

<Flag 0 ()>

delay

IntField

0

bandwidth

IntField

256

mtu

ThreeBytesField

1500

hopcount

ByteField

0

reliability

ByteField

255

load

ByteField

0

reserved2

XShortField

0

prefixlen

ByteField

24

dst

EigrpIPField

'192.168.1.0'

class scapy.contrib.eigrp.EIGRPGeneric(_pkt, /, *, type=0, len=None, value=b'\x00')[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             VALUE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. EIGRPGeneric                         
EIGRPGeneric fields

type

XShortField

0

len

FieldLenField

None

value

StrLenField

b'\x00'

guess_payload_class(p)[源代码]
class scapy.contrib.eigrp.EIGRPIntRoute(_pkt, /, *, type=258, len=None, nexthop='192.168.0.0', delay=128000, bandwidth=256, mtu=1500, hopcount=0, reliability=255, load=0, reserved=0, prefixlen=24, dst='192.168.1.0')[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NEXTHOP                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             DELAY                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BANDWIDTH                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              MTU                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    HOPCOUNT   |  RELIABILITY  |      LOAD     |    RESERVED   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |   PREFIXLEN   |              DST              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. EIGRPIntRoute                        
EIGRPIntRoute fields

type

XShortField

258

len

FieldLenField

None

nexthop

IPField

'192.168.0.0'

delay

IntField

128000

bandwidth

IntField

256

mtu

ThreeBytesField

1500

hopcount

ByteField

0

reliability

ByteField

255

load

ByteField

0

reserved

XShortField

0

prefixlen

ByteField

24

dst

EigrpIPField

'192.168.1.0'

class scapy.contrib.eigrp.EIGRPNms(_pkt, /, *, type=5, len=8, nms=2)[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              NMS                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. EIGRPNms                           
EIGRPNms fields

type

XShortField

5

len

ShortField

8

nms

IntField

2

class scapy.contrib.eigrp.EIGRPParam(_pkt, /, *, type=1, len=12, k1=1, k2=0, k3=1, k4=0, k5=0, reserved=0, holdtime=15)[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       K1      |       K2      |       K3      |       K4      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       K5      |    RESERVED   |            HOLDTIME           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. EIGRPParam                          
EIGRPParam fields

type

XShortField

1

len

ShortField

12

k1

ByteField

1

k2

ByteField

0

k3

ByteField

1

k4

ByteField

0

k5

ByteField

0

reserved

ByteField

0

holdtime

ShortField

15

class scapy.contrib.eigrp.EIGRPSeq(_pkt, /, *, type=3, len=None, addrlen=4, ipaddr='192.168.0.1', ip6addr='2001::')[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    ADDRLEN    |                     IPADDR                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                    IP6ADDR                    |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                          Fig. EIGRPSeq                           
EIGRPSeq fields

type

XShortField

3

len

ShortField

None

addrlen

ByteField

4

ipaddr

IPField (Cond)

'192.168.0.1'

ip6addr

IP6Field (Cond)

'2001::'

post_build(p, pay)[源代码]
class scapy.contrib.eigrp.EIGRPStub(_pkt, /, *, type=6, len=6, flags=<Flag 13 (connected+summary+receive-only)>)[源代码]

基类:EIGRPGeneric

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             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. EIGRPStub                          
EIGRPStub fields

type

XShortField

6

len

ShortField

6

flags

FlagsField

<Flag 13 (connected+summary+receive-only)>

class scapy.contrib.eigrp.EIGRPSwVer(_pkt, /, *, type=4, len=8, ios=3072, eigrp=258)[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              IOS              |             EIGRP             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. EIGRPSwVer                          
EIGRPSwVer fields

type

XShortField

4

len

ShortField

8

ios

ShortVersionField

3072

eigrp

ShortVersionField

258

class scapy.contrib.eigrp.EIGRPv6ExtRoute(_pkt, /, *, type=1027, len=None, nexthop='::', originrouter='192.168.0.1', originasn=0, tag=0, externalmetric=0, reserved=0, extprotocolid=3, flags=<Flag 0 ()>, delay=0, bandwidth=256000, mtu=1500, hopcount=1, reliability=0, load=1, reserved2=0, prefixlen=8, dst='::')[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NEXTHOP                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          ORIGINROUTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           ORIGINASN                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              TAG                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         EXTERNALMETRIC                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            RESERVED           | EXTPROTOCOLID |     FLAGS     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             DELAY                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BANDWIDTH                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              MTU                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    HOPCOUNT   |  RELIABILITY  |      LOAD     |   RESERVED2   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |   PREFIXLEN   |              DST              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. EIGRPv6ExtRoute                       
EIGRPv6ExtRoute fields

type

XShortField

1027

len

FieldLenField

None

nexthop

IP6Field

'::'

originrouter

IPField

'192.168.0.1'

originasn

IntField

0

tag

IntField

0

externalmetric

IntField

0

reserved

ShortField

0

extprotocolid

ByteEnumField

3

flags

FlagsField

<Flag 0 ()>

delay

IntField

0

bandwidth

IntField

256000

mtu

ThreeBytesField

1500

hopcount

ByteField

1

reliability

ByteField

0

load

ByteField

1

reserved2

XShortField

0

prefixlen

ByteField

8

dst

EigrpIP6Field

'::'

class scapy.contrib.eigrp.EIGRPv6IntRoute(_pkt, /, *, type=1026, len=None, nexthop='::', delay=128000, bandwidth=256000, mtu=1500, hopcount=1, reliability=255, load=0, reserved=0, prefixlen=16, dst='2001::')[源代码]

基类:EIGRPGeneric

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              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NEXTHOP                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             DELAY                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BANDWIDTH                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              MTU                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    HOPCOUNT   |  RELIABILITY  |      LOAD     |    RESERVED   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |   PREFIXLEN   |              DST              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. EIGRPv6IntRoute                       
EIGRPv6IntRoute fields

type

XShortField

1026

len

FieldLenField

None

nexthop

IP6Field

'::'

delay

IntField

128000

bandwidth

IntField

256000

mtu

ThreeBytesField

1500

hopcount

ByteField

1

reliability

ByteField

255

load

ByteField

0

reserved

XShortField

0

prefixlen

ByteField

16

dst

EigrpIP6Field

'2001::'

class scapy.contrib.eigrp.EigrpIP6Field(name, default, length=None, length_from=None)[源代码]

基类:StrField, IP6Field

This is a special field type for handling ip addresses of destination networks in internal and external route updates.

any2i(pkt, x)[源代码]
getfield(pkt, s)[源代码]
h2i(pkt, x)[源代码]
i2len(pkt, x)[源代码]
i2m(pkt, x)[源代码]
i2repr(pkt, x)[源代码]
length_from
m2i(pkt, x)[源代码]
prefixlen_to_bytelen(plen)[源代码]
randval()[源代码]
class scapy.contrib.eigrp.EigrpIPField(name, default, length=None, length_from=None)[源代码]

基类:StrField, IPField

This is a special field type for handling ip addresses of destination networks in internal and external route updates.

EIGRP removes zeros from the host portion of the ip address if the netmask is 8, 16 or 24 bits.

getfield(pkt, s)[源代码]
h2i(pkt, x)[源代码]
i2len(pkt, x)[源代码]
i2m(pkt, x)[源代码]
length_from
m2i(pkt, x)[源代码]
prefixlen_to_bytelen(tmp_len)[源代码]
randval()[源代码]
class scapy.contrib.eigrp.ShortVersionField(name: str, default: int | None)[源代码]

基类:ShortField

h2i(pkt, x)[源代码]

The field accepts string values like v12.1, v1.1 or integer values. String values have to start with a "v" followed by a floating point number. Valid numbers are between 0 and 255.

i2repr(pkt, x)[源代码]
randval()[源代码]