Mistake on this page?
Report an issue in GitHub or email us
Data Fields
pbuf Struct Reference

Main packet buffer struct. More...

#include <pbuf.h>

Data Fields

struct pbufnext
 next pbuf in singly linked pbuf chain More...
 
void * payload
 pointer to the actual data in the buffer More...
 
u16_t tot_len
 total length of this buffer and all next buffers in chain belonging to the same packet. More...
 
u16_t len
 length of this buffer More...
 
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) More...
 
u8_t flags
 misc flags More...
 
LWIP_PBUF_REF_T ref
 the reference count always equals the number of pointers that refer to this pbuf. More...
 
u8_t if_idx
 For incoming packets, this contains the input netif's index. More...
 

Detailed Description

Main packet buffer struct.

Definition at line 136 of file ppp_service_if.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 137 of file ppp_service_if.h.

void * payload

pointer to the actual data in the buffer

Definition at line 140 of file ppp_service_if.h.

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.

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)

Definition at line 208 of file pbuf.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.