Microchip® Advanced Software Framework

pbuf Struct Reference

#include <pbuf.h>

Data Fields

u8_t flags
 misc flags More...
 
u16_t len
 length of this buffer More...
 
struct pbufnext
 next pbuf in singly linked pbuf chain More...
 
voidpayload
 pointer to the actual data in the buffer More...
 
u16_t ref
 the reference count always equals the number of pointers that refer to this pbuf. More...
 
u16_t tot_len
 total length of this buffer and all next buffers in chain belonging to the same packet. More...
 
u8_t type
 pbuf_type as u8_t instead of enum to save space More...
 

u16_t pbuf::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.

Referenced by ip_output(), pbuf_alloc(), pbuf_free(), and pbuf_ref().

u8_t pbuf::type

pbuf_type as u8_t instead of enum to save space

Referenced by etharp_query(), pbuf_alloc(), pbuf_free(), pbuf_header(), and pbuf_realloc().