Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

pbuf Struct Reference

pbuf Struct Reference

Main packet buffer struct. More...

#include <pbuf.h>

Data Fields

struct pbufnext
 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_internal
 a bit field indicating pbuf type and allocation sources (see PBUF_TYPE_FLAG_*, PBUF_ALLOC_FLAG_* and PBUF_TYPE_ALLOC_SRC_MASK)
u8_t flags
 misc flags
LWIP_PBUF_REF_T ref
 the reference count always equals the number of pointers that refer to this pbuf.
u8_t if_idx
 For incoming packets, this contains the input netif's index.

Detailed Description

Main packet buffer struct.

Definition at line 186 of file pbuf.h.


Field Documentation

u8_t flags

misc flags

Definition at line 211 of file pbuf.h.

u8_t if_idx

For incoming packets, this contains the input netif's index.

Definition at line 221 of file pbuf.h.

u16_t len

length of this buffer

Definition at line 203 of file pbuf.h.

struct pbuf * next

next pbuf in singly linked pbuf chain

Definition at line 188 of file pbuf.h.

void * payload

pointer to the actual data in the buffer

Definition at line 191 of file pbuf.h.

LWIP_PBUF_REF_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 218 of file 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 200 of file pbuf.h.

a bit field indicating pbuf type and allocation sources (see PBUF_TYPE_FLAG_*, PBUF_ALLOC_FLAG_* and PBUF_TYPE_ALLOC_SRC_MASK)

Definition at line 208 of file pbuf.h.