scapy.contrib.coap

RFC 7252 - Constrained Application Protocol (CoAP) layer for Scapy

class scapy.contrib.coap.CoAP

Bases: scapy.packet.Packet

aliastypes
content_format
fields_desc
CoAP fields

ver

BitField (2 bits)

1

type

BitEnumField (2 bits)

0

tkl

BitFieldLenField (4 bits)

None

code

ByteEnumField

0

msg_id

ShortField

0

token

StrLenField

b''

options

_CoAPOptsField

[]

paymark

_CoAPPaymark

b''

getfieldval(attr)
post_dissect(pay)