Searched refs:coap_hdr_t (Results 1 – 10 of 10) sorted by relevance
/net-tools-latest/libcoap/src/ |
D | pdu.c | 45 pdu->length = sizeof(coap_hdr_t); in coap_pdu_clear() 84 if (size < sizeof(coap_hdr_t) || size > COAP_MAX_PDU_SIZE) in coap_pdu_init() 352 if (length < sizeof(coap_hdr_t)) { in coap_pdu_parse() 370 if (length != sizeof(coap_hdr_t) || pdu->hdr->token_length) { in coap_pdu_parse() 376 if (length < sizeof(coap_hdr_t) + pdu->hdr->token_length in coap_pdu_parse() 388 memcpy(pdu->hdr + 1, data + sizeof(coap_hdr_t), length - sizeof(coap_hdr_t)); in coap_pdu_parse() 396 length -= (pdu->hdr->token_length + sizeof(coap_hdr_t)); in coap_pdu_parse()
|
D | option.c | 128 oi->next_option = (unsigned char *)pdu->hdr + sizeof(coap_hdr_t) in coap_option_iterator_init() 135 assert((sizeof(coap_hdr_t) + pdu->hdr->token_length) <= pdu->length); in coap_option_iterator_init() 137 oi->length = pdu->length - (sizeof(coap_hdr_t) + pdu->hdr->token_length); in coap_option_iterator_init()
|
D | net.c | 863 if (msg_len < sizeof(coap_hdr_t)) { in coap_handle_message() 1036 size_t size = sizeof(coap_hdr_t) + request->hdr->token_length; in coap_new_error_response() 1181 resp->length = sizeof(coap_hdr_t) + resp->hdr->token_length; in coap_wellknown_response() 1266 resp->length = sizeof(coap_hdr_t) + resp->hdr->token_length; in coap_wellknown_response() 1469 response->length = sizeof(coap_hdr_t); in handle_request()
|
/net-tools-latest/libcoap/include/coap/ |
D | pdu.h | 183 } coap_hdr_t; typedef 193 } coap_hdr_t; typedef 229 coap_hdr_t *hdr; /**< Address of the first byte of the CoAP message.
|
/net-tools-latest/libcoap/tests/ |
D | test_options.c | 435 .hdr = (coap_hdr_t *)teststr, in t_iterate_option1() 460 .hdr = (coap_hdr_t *)teststr, in t_iterate_option2() 486 .hdr = (coap_hdr_t *)teststr, in t_iterate_option3() 528 .hdr = (coap_hdr_t *)teststr, in t_iterate_option4() 569 .hdr = (coap_hdr_t *)teststr, in t_iterate_option5() 601 .hdr = (coap_hdr_t *)teststr, in t_iterate_option6() 645 .hdr = (coap_hdr_t *)teststr, in t_iterate_option7() 691 .hdr = (coap_hdr_t *)teststr, in t_iterate_option8() 721 .hdr = (coap_hdr_t *)teststr, in t_iterate_option9() 751 .hdr = (coap_hdr_t *)teststr, in t_iterate_option10()
|
D | test_uri.c | 330 .hdr = (coap_hdr_t *)teststr, in t_parse_uri13()
|
/net-tools-latest/libcoap/examples/ |
D | coap-server.c | 254 size_t size = sizeof(coap_hdr_t) + 13; in check_async()
|
D | etsi_iot_01.c | 459 size_t size = sizeof(coap_hdr_t) + 8; in check_async()
|
D | coap-rd.c | 137 size_t size = sizeof(coap_hdr_t); in hnd_put_resource()
|
/net-tools-latest/ |
D | coap-client.c | 883 coap_hdr_t *pdu; in dispatch_data() 886 pdu = (coap_hdr_t *)buf; in dispatch_data() 888 if ((size_t)bytes_read < sizeof(coap_hdr_t)) { in dispatch_data()
|