Home
last modified time | relevance | path

Searched refs:CoAP (Results 1 – 2 of 2) sorted by relevance

/external/scapy/scapy/contrib/
Dcoap.uts1 % CoAP layer test campaign
4 = Import the CoAP layer
7 + Test CoAP
8 = CoAP default values
9 assert(raw(CoAP()) == b'\x40\x00\x00\x00')
12 p = CoAP(token='foobar')
13 assert(CoAP(raw(p)).tkl == 6)
16 p = CoAP(b'\x40\x01\xd9\xe1\xbb\x2e\x77\x65\x6c\x6c\x2d\x6b\x6e\x6f\x77\x6e\x04\x63\x6f\x72\x65')
27 assert(raw(CoAP(options=[("Uri-Query", "query")])) == b'\x40\x00\x00\x00\xd5\x02\x71\x75\x65\x72\x7…
30 assert(raw(CoAP(options=[("Location-Path", 'x' * 280)])) == b'\x40\x00\x00\x00\x8e\x0b\x00' + b'\x7…
[all …]
Dcoap.py223 class CoAP(Packet): class
249 bind_layers(UDP, CoAP, sport=5683)
250 bind_layers(UDP, CoAP, dport=5683)