Public Attributes

pbuf Struct Reference

#include <pbuf.h>

List of all members.

Public Attributes

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
 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.

Member Data Documentation

misc flags

length of this buffer

struct pbuf* pbuf::next

next pbuf in singly linked pbuf chain

pointer to the actual data in the buffer

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.

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)

pbuf_type as u8_t instead of enum to save space


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines