Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

pbuf Struct Reference

#include <pbuf.h>

Collaboration diagram for pbuf:

[legend]

Data Fields

pbufnext
void * payload
u16_t tot_len
u16_t len
u16_t flags
u16_t ref

Field Documentation

u16_t pbuf::flags
 

Definition at line 80 of file pbuf.h.

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

u16_t pbuf::len
 

Definition at line 77 of file pbuf.h.

Referenced by copy_from_pbuf(), dhcp_recv(), icmp_input(), ip_input(), ip_output_if(), netbuf_data(), netbuf_ref(), pbuf_dechain(), pbuf_free(), pbuf_header(), pbuf_init(), and pbuf_realloc().

struct pbuf* pbuf::next
 

next pbuf in singly linked pbuf chain

Definition at line 65 of file pbuf.h.

Referenced by copy_from_pbuf(), netbuf_next(), pbuf_chain(), pbuf_clen(), pbuf_dechain(), pbuf_free(), pbuf_init(), pbuf_pool_alloc(), pbuf_pool_free(), pbuf_ref_chain(), and pbuf_refresh().

void* pbuf::payload
 

pointer to the actual data in the buffer

Definition at line 68 of file pbuf.h.

Referenced by arp_arp_input(), arp_ip_input(), copy_from_pbuf(), dhcp_recv(), etharp_arp_input(), etharp_ip_input(), etharp_output(), http_recv(), icmp_dest_unreach(), icmp_input(), icmp_time_exceeded(), ip_frag(), ip_input(), ip_output_if(), ip_reass(), netbuf_alloc(), netbuf_data(), netbuf_ref(), pbuf_free(), and pbuf_header().

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.

Definition at line 87 of file pbuf.h.

Referenced by pbuf_free(), pbuf_ref(), and pbuf_ref_chain().

u16_t pbuf::tot_len
 

total length of this buffer and all next buffers in chain invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)

Definition at line 74 of file pbuf.h.

Referenced by arp_arp_input(), dhcp_recv(), dhcp_unfold_reply(), etharp_arp_input(), http_recv(), icmp_input(), ip_frag(), ip_input(), ip_output_if(), loopif_output(), netbuf_len(), netbuf_ref(), netconn_send(), pbuf_chain(), pbuf_dechain(), pbuf_free(), pbuf_header(), and pbuf_realloc().


The documentation for this struct was generated from the following file:
Generated on Wed Jan 14 12:59:17 2004 for RTL-lwIP-0.4 by doxygen 1.3.4