scapy.contrib.dtp

DTP Scapy Extension

version

2008-12-22

author

Bartl约亨< Lobo的阿托 的C3a. >

Thanks

  • TLV代码衍生自船尾的CDP实现. (感谢Nicolas Bareil和Arnaud Ebalard)#noqa:E501

class scapy.contrib.dtp.DTP

Bases: scapy.packet.Packet

aliastypes
fields_desc
DTP字段

ver

ByteField

1

tlvlist

PacketListField

[]

class scapy.contrib.dtp.DTPDomain

Bases: scapy.contrib.dtp.DtpGenericTlv

aliastypes
fields_desc
DTPDomain字段

type

ShortField

1

length

FieldLenField

None

domain

StrLenField

b'\x00'

class scapy.contrib.dtp.DTPNeighbor

Bases: scapy.contrib.dtp.DtpGenericTlv

aliastypes
fields_desc
DTPNeighbor字段

type

ShortField

4

len

ShortField

10

neighbor

MACField

None

class scapy.contrib.dtp.DTPStatus

Bases: scapy.contrib.dtp.DtpGenericTlv

aliastypes
fields_desc
DTPStatus字段

type

ShortField

2

length

FieldLenField

None

status

StrLenField

b'\x03'

class scapy.contrib.dtp.DTPType

Bases: scapy.contrib.dtp.DtpGenericTlv

aliastypes
fields_desc
DTPType字段

type

ShortField

3

length

FieldLenField

None

dtptype

StrLenField

b'\xa5'

class scapy.contrib.dtp.DtpGenericTlv

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc
DtpGenericTlv字段

type

XShortField

1

length

FieldLenField

None

value

StrLenField

b''

guess_payload_class(p)
scapy.contrib.dtp.negotiate_trunk(iface='eth0', mymac='ad:96:f6:56:2d:2c')