scapy.layers.lltd

LLTD Protocol

https://msdn.microsoft.com/en-us/library/cc233983.aspx

class scapy.layers.lltd.LLTD(_pkt, /, *, version=1, tos=0, reserved=0, function=0, real_dst=None, real_src=None, xid=0, seq=0)[源代码]

基类:Packet

aliastypes
answer_hashret = {(0, 12): (0, 11), (1, 1): (0, 0)}
answers(other)[源代码]
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    |      TOS      |    RESERVED   |    FUNCTION   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            REAL DST                           |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |            REAL SRC           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              XID              |              SEQ              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                            Fig. LLTD                             
LLTD fields

version

ByteField

1

tos

ByteEnumField

0

reserved

ByteField

0

function

MultiEnumField (Depends on 0)

0

real_dst

MACField

None

real_src

MACField

None

xid

ShortField (Cond)

0

seq

ShortField (Cond)

0

hashret()[源代码]
mysummary()[源代码]
payload_guess

Possible sublayers: LLTDDiscover, LLTDEmit, LLTDHello, LLTDQueryLargeTlvResp, LLTDQueryLargeTlv, LLTDQueryResp

post_build(pkt, pay)[源代码]
class scapy.layers.lltd.LLTDAttribute(_pkt, /, *, type=0, len=None, value=b'')[源代码]

基类:Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *_, **kargs)[源代码]
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. LLTDAttribute                        
LLTDAttribute fields

type

ByteEnumField

0

len

FieldLenField

None

value

StrLenField

b''

payload_guess

Possible sublayers: LLTDAttribute, Padding

show_indent = False
show_summary = False
class scapy.layers.lltd.LLTDAttribute80211MaxRate(_pkt, /, *, len=2, rate=0)[源代码]

基类:LLTDAttribute

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

                  Fig. LLTDAttribute80211MaxRate                  
LLTDAttribute80211MaxRate fields

type

ByteEnumField

9

len

ByteField

2

rate

ShortField

0

class scapy.layers.lltd.LLTDAttribute80211PhysicalMedium(_pkt, /, *, len=1, medium=0)[源代码]

基类:LLTDAttribute

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

              Fig. LLTDAttribute80211PhysicalMedium               
LLTDAttribute80211PhysicalMedium fields

type

ByteEnumField

21

len

ByteField

1

medium

ByteEnumField

0

class scapy.layers.lltd.LLTDAttributeCharacteristics(_pkt, /, *, len=None, flags=<Flag 0 ()>, reserved1=0, reserved2=b'')[源代码]

基类:LLTDAttribute

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

                Fig. LLTDAttributeCharacteristics                 
LLTDAttributeCharacteristics fields

type

ByteEnumField

2

len

FieldLenField

None

flags

FlagsField

<Flag 0 ()>

reserved1

BitField (11 bits)

0

reserved2

StrLenField

b''

class scapy.layers.lltd.LLTDAttributeDeviceUUID(_pkt, /, *, len=None, uuid=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')[源代码]

基类:LLTDAttribute

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

                   Fig. LLTDAttributeDeviceUUID                   
LLTDAttributeDeviceUUID fields

type

ByteEnumField

18

len

FieldLenField

None

uuid

StrLenField

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

class scapy.layers.lltd.LLTDAttributeEOP(_pkt, /)[源代码]

基类:LLTDAttribute

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

                      Fig. LLTDAttributeEOP                       
LLTDAttributeEOP fields

type

ByteEnumField

0

class scapy.layers.lltd.LLTDAttributeHostID(_pkt, /, *, len=6, mac='00:00:00:00:00:00')[源代码]

基类:LLTDAttribute

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

                     Fig. LLTDAttributeHostID                     
LLTDAttributeHostID fields

type

ByteEnumField

1

len

ByteField

6

mac

MACField

'00:00:00:00:00:00'

mysummary()[源代码]
class scapy.layers.lltd.LLTDAttributeIPv4Address(_pkt, /, *, len=4, ipv4='0.0.0.0')[源代码]

基类:LLTDAttribute

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

                  Fig. LLTDAttributeIPv4Address                   
LLTDAttributeIPv4Address fields

type

ByteEnumField

7

len

ByteField

4

ipv4

IPField

'0.0.0.0'

class scapy.layers.lltd.LLTDAttributeIPv6Address(_pkt, /, *, len=16, ipv6='::')[源代码]

基类:LLTDAttribute

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

                  Fig. LLTDAttributeIPv6Address                   
LLTDAttributeIPv6Address fields

type

ByteEnumField

8

len

ByteField

16

ipv6

IP6Field

'::'

class scapy.layers.lltd.LLTDAttributeLargeTLV(_pkt, /, *, len=0)[源代码]

基类:LLTDAttribute

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

                    Fig. LLTDAttributeLargeTLV                    
LLTDAttributeLargeTLV fields

type

ByteEnumField

14

len

ByteField

0

class scapy.layers.lltd.LLTDAttributeLinkSpeed(_pkt, /, *, len=4, speed=0)[源代码]

基类:LLTDAttribute

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

                   Fig. LLTDAttributeLinkSpeed                    
LLTDAttributeLinkSpeed fields

type

ByteEnumField

12

len

ByteField

4

speed

IntField

0

class scapy.layers.lltd.LLTDAttributeMachineName(_pkt, /, *, len=None, hostname=b'')[源代码]

基类:LLTDAttribute

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. LLTDAttributeMachineName                   
LLTDAttributeMachineName fields

type

ByteEnumField

15

len

FieldLenField

None

hostname

StrLenFieldUtf16

b''

mysummary()[源代码]
class scapy.layers.lltd.LLTDAttributePerformanceCounterFrequency(_pkt, /, *, len=8, freq=0)[源代码]

基类:LLTDAttribute

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

          Fig. LLTDAttributePerformanceCounterFrequency           
LLTDAttributePerformanceCounterFrequency fields

type

ByteEnumField

10

len

ByteField

8

freq

LongField

0

class scapy.layers.lltd.LLTDAttributePhysicalMedium(_pkt, /, *, len=4, medium=6)[源代码]

基类:LLTDAttribute

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

                 Fig. LLTDAttributePhysicalMedium                 
LLTDAttributePhysicalMedium fields

type

ByteEnumField

3

len

ByteField

4

medium

IntEnumField

6

class scapy.layers.lltd.LLTDAttributeQOSCharacteristics(_pkt, /, *, len=4, flags=<Flag 0 ()>, reserved1=0, reserved2=0)[源代码]

基类:LLTDAttribute

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

               Fig. LLTDAttributeQOSCharacteristics               
LLTDAttributeQOSCharacteristics fields

type

ByteEnumField

20

len

ByteField

4

flags

FlagsField

<Flag 0 ()>

reserved1

BitField (13 bits)

0

reserved2

ShortField

0

class scapy.layers.lltd.LLTDAttributeSeesList(_pkt, /, *, len=2, max_entries=0)[源代码]

基类:LLTDAttribute

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

                    Fig. LLTDAttributeSeesList                    
LLTDAttributeSeesList fields

type

ByteEnumField

25

len

ByteField

2

max_entries

ShortField

0

class scapy.layers.lltd.LLTDDiscover(_pkt, /, *, gen_number=0, stations_count=None, stations_list=[])[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           GEN NUMBER          |         STATIONS COUNT        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         STATIONS LIST         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. LLTDDiscover                         
LLTDDiscover fields

gen_number

ShortField

0

stations_count

FieldLenField

None

stations_list

FieldListField

[]

mysummary()[源代码]
class scapy.layers.lltd.LLTDEmit(_pkt, /, *, descs_count=None, descs_list=[])[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          DESCS COUNT          |           DESCS LIST          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. LLTDEmit                           
LLTDEmit fields

descs_count

FieldLenField

None

descs_list

PacketListField

[]

mysummary()[源代码]
class scapy.layers.lltd.LLTDEmiteeDesc(_pkt, /, *, type=0, pause=0, src=None, dst='00:00:00:00:00:00')[源代码]

基类: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     |     PAUSE     |              SRC              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              DST                              |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. LLTDEmiteeDesc                        
LLTDEmiteeDesc fields

type

ByteEnumField

0

pause

ByteField

0

src

MACField

None

dst

MACField

'00:00:00:00:00:00'

payload_guess

Possible sublayers: Padding

class scapy.layers.lltd.LLTDHello(_pkt, /, *, gen_number=0, current_mapper_address='00:00:00:00:00:00', apparent_mapper_address='00:00:00:00:00:00')[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           GEN NUMBER          |     CURRENT MAPPER ADDRESS    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    APPARENT MAPPER ADDRESS                    |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. LLTDHello                          
LLTDHello fields

gen_number

ShortField

0

current_mapper_address

MACField

'00:00:00:00:00:00'

apparent_mapper_address

MACField

'00:00:00:00:00:00'

payload_guess

Possible sublayers: LLTDAttribute

show_summary = False
class scapy.layers.lltd.LLTDQueryLargeTlv(_pkt, /, *, type=14, offset=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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      TYPE     |                     OFFSET                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                      Fig. LLTDQueryLargeTlv                      
LLTDQueryLargeTlv fields

type

ByteEnumField

14

offset

ThreeBytesField

0

mysummary()[源代码]
class scapy.layers.lltd.LLTDQueryLargeTlvResp(_pkt, /, *, flags=<Flag 0 ()>, len=None, value=b'')[源代码]

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

                    Fig. LLTDQueryLargeTlvResp                    
LLTDQueryLargeTlvResp fields

flags

FlagsField

<Flag 0 ()>

len

BitField (14 bits)

None

value

StrLenField

b''

mysummary()[源代码]
post_build(pkt, pay)[源代码]
class scapy.layers.lltd.LLTDQueryResp(_pkt, /, *, flags=<Flag 0 ()>, descs_count=None, descs_list=[])[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|FLA|        DESCS COUNT        |           DESCS LIST          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. LLTDQueryResp                        
LLTDQueryResp fields

flags

FlagsField

<Flag 0 ()>

descs_count

BitField (14 bits)

None

descs_list

PacketListField

[]

mysummary()[源代码]
post_build(pkt, pay)[源代码]
class scapy.layers.lltd.LLTDRecveeDesc(_pkt, /, *, type=0, real_src='00:00:00:00:00:00', ether_src='00:00:00:00:00:00', ether_dst='00:00:00:00:00:00')[源代码]

基类: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             |            REAL SRC           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           ETHER SRC                           |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |           ETHER DST           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. LLTDRecveeDesc                        
LLTDRecveeDesc fields

type

ShortEnumField

0

real_src

MACField

'00:00:00:00:00:00'

ether_src

MACField

'00:00:00:00:00:00'

ether_dst

MACField

'00:00:00:00:00:00'

payload_guess

Possible sublayers: Padding

class scapy.layers.lltd.LargeTlvBuilder[源代码]

基类:object

An object to build content fetched through LLTDQueryLargeTlv / LLTDQueryLargeTlvResp packets.

Usable with a PacketList() object: >>> p = LargeTlvBuilder() >>> p.parse(rdpcap('capture_file.cap'))

Or during a network capture: >>> p = LargeTlvBuilder() >>> sniff(filter="ether proto 0x88d9", prn=p.parse)

To get the result, use .get_data()

get_data()[源代码]

Returns a dictionary object, keys are strings "source > destincation [content type]", and values are the content fetched, also as a string.

parse(plist)[源代码]

Update the builder using the provided plist. plist can be either a Packet() or a PacketList().