Lines Matching defs:pbuf
69 coap_pdu_from_pbuf(struct pbuf *pbuf) {
72 if (pbuf == NULL)
76 pbuf->tot_len == pbuf->len);
77 LWIP_ASSERT("coap_io_do_io needs to receive an exclusive copy of the incoming pbuf",
78 pbuf->ref == 1);
82 pbuf_free(pbuf);
87 pdu->pbuf = pbuf;
88 pdu->token = (uint8_t *)pbuf->payload + pdu->max_hdr_size;
89 pdu->alloc_size = pbuf->tot_len - pdu->max_hdr_size;
129 pdu->pbuf = pbuf_alloc(PBUF_TRANSPORT, size + pdu->max_hdr_size, PBUF_RAM);
130 if (pdu->pbuf == NULL) {
134 pdu->token = (uint8_t *)pdu->pbuf->payload + pdu->max_hdr_size;
166 pbuf_free(pdu->pbuf);