#include <pbuf.h>
Data Fields | |
u8_t | flags |
misc flags More... | |
u16_t | len |
length of this buffer More... | |
struct pbuf * | next |
next pbuf in singly linked pbuf chain More... | |
void * | payload |
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... | |
u8_t pbuf::flags |
misc flags
Referenced by ethernet_input(), pbuf_alloc(), pbuf_free(), tcp_input(), and tcp_process_refused_data().
u16_t pbuf::len |
length of this buffer
Referenced by etharp_arp_input(), etharp_query(), etharp_raw(), ethernet_input(), gmac_low_level_input(), gmac_low_level_output(), icmp_input(), icmp_send_response(), inet_chksum_pbuf(), inet_chksum_pseudo(), inet_chksum_pseudo_partial(), ip_frag(), ip_input(), ip_reass_chain_frag_into_datagram_and_validate(), pbuf_alloc(), pbuf_cat(), pbuf_copy(), pbuf_copy_partial(), pbuf_dechain(), pbuf_get_at(), pbuf_header(), pbuf_memcmp(), pbuf_realloc(), pbuf_take(), tcp_enqueue_flags(), tcp_output_alloc_header(), tcp_output_segment(), tcp_pbuf_prealloc(), tcp_receive(), tcp_rst(), and tcp_write().
struct pbuf* pbuf::next |
next pbuf in singly linked pbuf chain
Referenced by etharp_query(), etharp_update_arp_entry(), gmac_low_level_output(), inet_chksum_pbuf(), inet_chksum_pseudo(), inet_chksum_pseudo_partial(), ip_frag(), pbuf_alloc(), pbuf_cat(), pbuf_clen(), pbuf_coalesce(), pbuf_copy(), pbuf_copy_partial(), pbuf_dechain(), pbuf_free(), pbuf_get_at(), pbuf_memcmp(), pbuf_realloc(), pbuf_take(), tcp_pbuf_prealloc(), tcp_receive(), and tcp_write().
void* pbuf::payload |
pointer to the actual data in the buffer
Referenced by etharp_arp_input(), etharp_output(), etharp_raw(), etharp_send_ip(), ethernet_input(), ethernetif_input(), gmac_low_level_output(), gmac_rx_populate_queue(), http_recv(), icmp_input(), icmp_send_response(), inet_chksum_pbuf(), inet_chksum_pseudo(), inet_chksum_pseudo_partial(), ip_frag(), ip_input(), ip_reass(), ip_reass_chain_frag_into_datagram_and_validate(), ip_reass_free_complete_datagram(), pbuf_alloc(), pbuf_copy(), pbuf_copy_partial(), pbuf_get_at(), pbuf_header(), pbuf_realloc(), pbuf_take(), tcp_create_segment(), tcp_input(), tcp_keepalive(), tcp_output_alloc_header(), tcp_output_segment(), tcp_rst(), tcp_send_empty_ack(), tcp_write(), tcp_zero_window_probe(), and udp_input().
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().
u16_t pbuf::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)
Referenced by etharp_arp_input(), etharp_query(), gmac_low_level_input(), gmac_low_level_output(), http_recv(), icmp_input(), ip_frag(), ip_input(), pbuf_alloc(), pbuf_cat(), pbuf_coalesce(), pbuf_copy(), pbuf_dechain(), pbuf_header(), pbuf_memfind(), pbuf_realloc(), pbuf_strstr(), pbuf_take(), tcp_create_segment(), tcp_input(), tcp_keepalive(), tcp_output_segment(), tcp_pbuf_prealloc(), tcp_receive(), tcp_recv_null(), tcp_rst(), tcp_send_empty_ack(), tcp_write(), tcp_zero_window_probe(), and udp_input().
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().