Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 5 of 5) sorted by relevance

/net-tools-3.7.0/libcoap/src/
Dcoap_io_lwip.c25 …al with contiguous PBUFs to read the initial details", packet->pbuf->tot_len == packet->pbuf->len); in coap_packet_get_memmapped()
26 *address = packet->pbuf->payload; in coap_packet_get_memmapped()
27 *length = packet->pbuf->tot_len; in coap_packet_get_memmapped()
31 if (packet->pbuf) in coap_free_packet()
32 pbuf_free(packet->pbuf); in coap_free_packet()
36 struct pbuf *coap_packet_extract_pbuf(coap_packet_t *packet) in coap_packet_extract_pbuf()
38 struct pbuf *ret = packet->pbuf; in coap_packet_extract_pbuf()
39 packet->pbuf = NULL; in coap_packet_extract_pbuf()
52 static void coap_recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, ip_addr_t *addr, u16_t port) in coap_recv()
58 packet->pbuf = p; in coap_recv()
Dpdu.c35 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()
[all …]
Dnet.c604 pbuf_realloc(pdu->pbuf, pdu->length); in coap_send_impl()
608 udp_sendto(context->endpoint->pcb, pdu->pbuf, in coap_send_impl()
/net-tools-3.7.0/libcoap/include/coap/
Dcoap_io.h135 struct pbuf *coap_packet_extract_pbuf(coap_packet_t *packet);
165 struct pbuf *pbuf; member
Dpdu.h238 struct pbuf *pbuf; /**< lwIP PBUF. The package data will always reside member
270 coap_pdu_t * coap_pdu_from_pbuf(struct pbuf *pbuf);