scapy.contrib.coap

RFC 7252-Scapy的受限应用协议(CoAP)层

class scapy.contrib.coap.CoAP

Bases: scapy.packet.Packet

aliastypes
content_format
fields_desc
CoAP字段

ver

BitField (2位)

1

type

BitEnumField (2位)

0

tkl

BitFieldLenField (4位)

None

code

ByteEnumField

0

msg_id

ShortField

0

token

StrLenField

b''

options

_CoAPOptsField

[]

paymark

_CoAPPaymark

b''

getfieldval(attr)
post_dissect(pay)