Home
last modified time | relevance | path

Searched refs:coap_hdr_t (Results 1 – 10 of 10) sorted by relevance

/net-tools-latest/libcoap/src/
Dpdu.c45 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()
Doption.c128 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()
Dnet.c863 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/
Dpdu.h183 } 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/
Dtest_options.c435 .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()
Dtest_uri.c330 .hdr = (coap_hdr_t *)teststr, in t_parse_uri13()
/net-tools-latest/libcoap/examples/
Dcoap-server.c254 size_t size = sizeof(coap_hdr_t) + 13; in check_async()
Detsi_iot_01.c459 size_t size = sizeof(coap_hdr_t) + 8; in check_async()
Dcoap-rd.c137 size_t size = sizeof(coap_hdr_t); in hnd_put_resource()
/net-tools-latest/
Dcoap-client.c883 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()