Lines Matching refs:pbuf
35 pdu->hdr = pdu->pbuf->payload; in coap_pdu_clear()
50 coap_pdu_from_pbuf(struct pbuf *pbuf) in coap_pdu_from_pbuf() argument
52 if (pbuf == NULL) return NULL; in coap_pdu_from_pbuf()
54 LWIP_ASSERT("Can only deal with contiguous PBUFs", pbuf->tot_len == pbuf->len); in coap_pdu_from_pbuf()
55 LWIP_ASSERT("coap_read needs to receive an exclusive copy of the incoming pbuf", pbuf->ref == 1); in coap_pdu_from_pbuf()
59 pbuf_free(pbuf); in coap_pdu_from_pbuf()
65 result->max_size = pbuf->tot_len; in coap_pdu_from_pbuf()
66 result->length = pbuf->tot_len; in coap_pdu_from_pbuf()
67 result->hdr = pbuf->payload; in coap_pdu_from_pbuf()
68 result->pbuf = pbuf; in coap_pdu_from_pbuf()
79 struct pbuf *p; in coap_pdu_init()
108 pdu->pbuf = p; in coap_pdu_init()
147 pbuf_free(pdu->pbuf); in coap_delete_pdu()