/openthread-3.4.0/tests/scripts/thread-cert/pktverify/ |
D | coap.py | 73 payload = self.payload 77 t, tvs, r = self._parse_next_tlv(payload, r) 88 def _parse_next_tlv(payload, read_pos) -> tuple: argument 89 assert read_pos <= len(payload) 90 if read_pos == len(payload): 93 t = payload[read_pos] 94 len_ = payload[read_pos + 1] 95 assert (len(payload) - read_pos - 2 >= len_) 96 kvs = CoapTlvParser.parse(t, payload[read_pos + 2:read_pos + 2 + len_])
|
/openthread-3.4.0/src/cli/ |
D | README_COAPS.md | 52 coaps response from fdde:ad00:beef:0:9903:14b:27e0:5744 with payload: 68656c6c6f576f726c6400 53 > coaps put test-resource con payload 65 coaps request from fdde:ad00:beef:0:9e68:576f:714c:f395 PUT with payload: 7061796c6f6164 87 - [delete](#delete-uri-path-type-payload) 90 - [post](#post-uri-path-type-payload) 92 - [put](#put-uri-path-type-payload) 135 ### delete \<uri-path\> \[type\] \[payload\] 139 - payload: CoAPS request payload. 142 > coaps delete test-resource con payload 169 ### post \<uri-path\> \[type\] \[payload\] [all …]
|
D | README_COAP.md | 29 coap response from [fdde:ad00:beef:0:2780:9423:166c:1aac] with payload: 30 30 > coap put fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload 42 coap request from [fdde:ad00:beef:0:b3:e3f6:2dcc:4b79] PUT with payload: 7061796c6f6164 50 - [delete](#delete-address-uri-path-type-payload) 54 - [post](#post-address-uri-path-type-payload) 55 - [put](#put-address-uri-path-type-payload) 93 ### delete \<address\> \<uri-path\> \[type\] \[payload\] 98 - payload: CoAP request payload. 101 > coap delete fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload 171 ### post \<address\> \<uri-path\> \[type\] \[payload\] [all …]
|
D | README_UDP.md | 184 - `-t`: text payload in the `value`, same as without specifying the type. 185 - `-s`: autogenerated payload with specified length indicated in the `value`. 216 - `-t`: text payload in the `value`, same as without specifying the type. 217 - `-s`: autogenerated payload with specified length indicated in the `value`.
|
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_pkcs1_v15.data | 43 RSAES-V15 decoding: good, payload=max, tight output buffer 46 RSAES-V15 decoding: good, payload=max, larger output buffer 49 RSAES-V15 decoding: good, payload=max-1, tight output buffer 52 RSAES-V15 decoding: good, payload=max-1, larger output buffer 55 RSAES-V15 decoding: good, payload=1 58 RSAES-V15 decoding: good, empty payload 61 RSAES-V15 decoding: payload=max, output too large 64 RSAES-V15 decoding: payload=max-1, output too large 85 EMSA-V15 decoding: good, payload=max, tight output buffer 88 EMSA-V15 decoding: good, payload=max, larger output buffer [all …]
|
D | test_suite_asn1parse.function | 297 * followed by `actual_length` bytes of payload. To save a bit of 299 * the payload is truncated more than one byte away from either end,
|
/openthread-3.4.0/tests/scripts/thread-cert/ |
D | mac802154.py | 217 self.payload = None 311 payload = data.read(payload_len) 334 private_payload = payload 339 extra_open_fields.append(payload[0]) 340 open_payload = payload[0:1] 341 private_payload = payload[1:] 350 …self.payload = MacPayload(bytearray(open_payload) + sec_obj.decrypt(private_payload, mic, message_… 353 self.payload = MacPayload(payload) 356 command_type = self.payload.data[0]
|
D | coap.py | 208 payload, argument 217 self._payload = payload 249 def payload(self): member in CoapMessage 266 self.payload, 320 def payload(self): member in CoapMessageProxy 326 return factory.parse(io.BytesIO(self._coap_message.payload), self._message_info) 329 return self._coap_message.payload 345 self.payload,
|
D | test_mac802154.py | 54 self.assertEqual(None, frame.payload) 72 self.assertEqual(bytearray([0x12, 0x34]), frame.payload.data) 96 self.assertEqual(bytearray([0x12, 0x34]), frame.payload.data) 119 self.assertEqual(bytearray([0x12, 0x34]), frame.payload.data) 142 self.assertEqual(bytearray([0x12, 0x34]), frame.payload.data) 159 self.assertEqual(bytearray([0x4]), frame.payload.data) 249 ])), frame.payload.data)
|
D | test_ipv6.py | 174 def any_udp_payload(src_port, dst_port, payload, checksum): argument 175 payload_len = len(payload) + 8 178 (checksum >> 8) & 0xff, checksum & 0xff]) + payload 181 def any_hop_by_hop_payload(next_header, hdr_ext_len, payload): argument 182 return bytearray([next_header, hdr_ext_len]) + payload 193 payload = "".join([random.choice(string.printable) for _ in range(length)]) 194 return bytearray(payload.encode("utf-8")) 682 payload = any_payload() 683 … payload_length = len(payload) + 8 # UDP length consists of UDP header length and payload length 686 udp_payload = BytesPayload(payload) [all …]
|
D | message.py | 72 if isinstance(udp_datagram.payload, mle.MleMessage): 74 self._mle = udp_datagram.payload 76 elif isinstance(udp_datagram.payload, (coap.CoapMessage, coap.CoapMessageProxy)): 78 self._coap = udp_datagram.payload 81 elif isinstance(udp_datagram.payload, list): 83 self._dtls = udp_datagram.payload 266 for tlv in self.coap.payload: 275 for tlv in self.coap.payload: 287 for tlv in self.coap.payload: 298 for tlv in self.coap.payload: [all …]
|
D | test_coap.py | 446 payload = any_payload() 455 payload, 459 actual_payload = coap_message.payload 462 self.assertEqual(payload, actual_payload) 593 coap_message.payload, 667 coap_message.payload,
|
D | node.py | 858 payload = bytearray([]) 871 payload += bytearray(data) 873 assert len(payload) == payload_len 874 return (direction, type, payload) 2774 def coap_delete(self, ipaddr, uri, con=False, payload=None): argument 2778 return self._coap_rq('delete', ipaddr, uri, con, payload) 2780 def coap_get(self, ipaddr, uri, con=False, payload=None): argument 2784 return self._coap_rq('get', ipaddr, uri, con, payload) 2792 def coap_observe(self, ipaddr, uri, con=False, payload=None): argument 2796 return self._coap_rq('observe', ipaddr, uri, con, payload) [all …]
|
D | ipv6.py | 542 def __init__(self, header, payload): argument 544 self.payload = payload 547 self.header.payload_length = len(self.payload) 551 data += self.payload.to_bytes() 555 return len(self.header) + len(self.payload) 1091 payload = self._udp_payload_factory.parse(data, message_info) 1093 return UDPDatagram(header, payload)
|
D | v1_2_test_multicast_listener_registration.py | 653 … logging.info('MLR.rsp %s uri_path=%s, payload=%s', rsp, rsp.coap.uri_path, rsp.coap.payload) 656 for tlv in rsp.coap.payload: 676 msg.coap.payload) 689 logging.info("MLR.req: %s %s" % (msg.coap.message_id, msg.coap.payload))
|
D | simulator.py | 86 payload, 88 msg = self._payload_parse_factory.parse(type.decode("utf-8"), io.BytesIO(payload))
|
D | Cert_9_2_02_MGMTCommissionerSet.py | 94 …commissioner_session_id_tlv = command.get_sub_tlv(msg.coap.payload, mesh_cop.CommissionerSessionId)
|
/openthread-3.4.0/src/posix/platform/ |
D | udp.cpp | 421 uint8_t payload[kMaxUdpSize]; in otPlatUdpSend() local 427 VerifyOrExit(len == otMessageRead(aMessage, 0, payload, len), error = OT_ERROR_INVALID_ARGS); in otPlatUdpSend() 436 error = transmitPacket(fd, payload, len, *aMessageInfo); in otPlatUdpSend() 610 uint8_t payload[kMaxUdpSize]; in Process() local 611 uint16_t length = sizeof(payload); in Process() 616 if (OT_ERROR_NONE != receivePacket(fd, payload, length, messageInfo)) in Process() 628 if (otMessageAppend(message, payload, length) != OT_ERROR_NONE) in Process()
|
/openthread-3.4.0/third_party/mbedtls/repo/programs/fuzz/ |
D | README.md | 52 * Extract tcp payloads, for instance with tshark : `tshark -Tfields -e tcp.dstport -e tcp.payload -… 56 Here is an example of dummy.py for extracting payload from client to server (if we used `tcp.dstpor…
|
/openthread-3.4.0/tools/harness-thci/ |
D | OpenThread.py | 2313 payload = [] 2349 payload.append(int(payloadValues[num], 16)) 2351 EncryptedPacket.TLVs = (PlatformPackets.read(EncryptedPacket.Type, payload) 2352 if payload != [] else []) 3030 def sendUdp(self, destination, port, payload='hello'): argument 3031 assert payload is not None, 'payload should not be none' 3032 cmd = 'udp send %s %d %s' % (destination, port, payload) 3036 def send_udp(self, interface, destination, port, payload='12ABcd'): argument 3039 assert payload is not None, 'payload should not be none' 3043 cmd = 'udp send %s %s -x %s' % (destination, port, payload)
|
D | OpenThread_BR.py | 393 def send_udp(self, interface, dst, port, payload): argument 395 super(OpenThread_BR, self).send_udp(interface, dst, port, payload) 403 cmd = '/home/pi/reference-device/send_udp.py %s %s %s %s' % (ifname, dst, port, payload)
|
D | OpenThread_WpanCtl.py | 2133 payload = [] 2170 payload.append(int(payloadValues[num], 16)) 2172 …EncryptedPacket.TLVs = PlatformPackets.read(EncryptedPacket.Type, payload) if payload != [] else []
|
/openthread-3.4.0/third_party/mbedtls/repo/tests/src/ |
D | psa_exercise_key.c | 303 unsigned char payload[PSA_HASH_MAX_SIZE] = {1}; in exercise_signature_key() local 329 payload, payload_length, in exercise_signature_key() 341 payload, payload_length, in exercise_signature_key()
|
/openthread-3.4.0/src/core/mac/ |
D | mac_frame.cpp | 937 const uint8_t *payload; in GetPayload() local 939 VerifyOrExit(index != kInvalidIndex, payload = nullptr); in GetPayload() 940 payload = &mPsdu[index]; in GetPayload() 943 return payload; in GetPayload()
|
/openthread-3.4.0/tools/otci/otci/ |
D | otci.py | 2318 …def coap_put(self, addr: Union[str, Ip6Addr], uri_path: str, type: str = "con", payload: Optional[… 2321 if payload is not None: 2326 …def coap_post(self, addr: Union[str, Ip6Addr], uri_path: str, type: str = "con", payload: Optional… 2329 if payload is not None: 2334 …def coap_delete(self, addr: Union[str, Ip6Addr], uri_path: str, type: str = "con", payload: Option… 2337 if payload is not None:
|