Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
pbuf Struct Reference
Main packet buffer struct. More...
#include <pbuf.h>
Data Fields | |
struct pbuf * | next |
next pbuf in singly linked pbuf chain | |
void * | payload |
pointer to the actual data in the buffer | |
u16_t | tot_len |
total length of this buffer and all next buffers in chain belonging to the same packet. | |
u16_t | len |
length of this buffer | |
u8_t | type |
pbuf_type as u8_t instead of enum to save space | |
u8_t | flags |
misc flags | |
u16_t | ref |
the reference count always equals the number of pointers that refer to this pbuf. |
Detailed Description
Main packet buffer struct.
Definition at line 118 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
Field Documentation
u8_t flags |
misc flags
Definition at line 141 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
u16_t len |
length of this buffer
Definition at line 135 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
next pbuf in singly linked pbuf chain
Definition at line 120 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
void * payload |
pointer to the actual data in the buffer
Definition at line 123 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
u16_t ref |
the reference count always equals the number of pointers that refer to this pbuf.
This can be pointers from an application, the stack itself, or pbuf->next pointers from a chain.
Definition at line 148 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
u16_t tot_len |
total length of this buffer and all next buffers in chain belonging to the same packet.
For non-queue packet chains this is the invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)
Definition at line 132 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
u8_t type |
pbuf_type as u8_t instead of enum to save space
Definition at line 138 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h.
Generated on Tue Jul 12 2022 17:35:12 by
