Home
last modified time | relevance | path

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

/third_party/libcoap/src/
Dcoap_pdu.c179 coap_pdu_duplicate(const coap_pdu_t *old_pdu, in coap_pdu_duplicate() argument
194 pdu = coap_pdu_init(old_pdu->type, old_pdu->code, in coap_pdu_duplicate()
196 max(old_pdu->max_size, in coap_pdu_duplicate()
204 pdu->lg_xmit = old_pdu->lg_xmit; in coap_pdu_duplicate()
208 size_t length = old_pdu->used_size - old_pdu->e_token_length - in coap_pdu_duplicate()
209 (old_pdu->data ? in coap_pdu_duplicate()
210 old_pdu->used_size - (old_pdu->data - old_pdu->token) +1 : 0); in coap_pdu_duplicate()
215 old_pdu->token + old_pdu->e_token_length, length); in coap_pdu_duplicate()
217 pdu->max_opt = old_pdu->max_opt; in coap_pdu_duplicate()
223 coap_option_iterator_init(old_pdu, &opt_iter, COAP_OPT_ALL); in coap_pdu_duplicate()
/third_party/libcoap/include/coap3/
Dcoap_pdu.h421 coap_pdu_t *coap_pdu_duplicate(const coap_pdu_t *old_pdu,