INET Framework for OMNeT++/OMNEST
pbuf.h File Reference
#include "lwip/opt.h"
#include "lwip/err.h"

Classes

struct  inet::tcp::pbuf
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::tcp
 

Macros

#define PBUF_TRANSPORT_HLEN   20
 
#define PBUF_IP_HLEN   60
 
#define PBUF_FLAG_PUSH   0x01U
 indicates this packet's data should be immediately passed to the application More...
 
#define pbuf_init()
 

Enumerations

enum  inet::tcp::pbuf_layer { inet::tcp::PBUF_TRANSPORT, inet::tcp::PBUF_IP, inet::tcp::PBUF_LINK, inet::tcp::PBUF_RAW }
 
enum  inet::tcp::pbuf_type { inet::tcp::PBUF_RAM, inet::tcp::PBUF_ROM, inet::tcp::PBUF_REF, inet::tcp::PBUF_POOL }
 

Functions

struct pbuf * inet::tcp::pbuf_alloc (pbuf_layer layer, u16_t length, pbuf_type type)
 Allocates a pbuf of the given type (possibly a chain for PBUF_POOL type). More...
 
void inet::tcp::pbuf_realloc (struct pbuf *p, u16_t new_len)
 Shrink a pbuf chain to a desired length. More...
 
u8_t inet::tcp::pbuf_header (struct pbuf *p, s16_t header_size_increment)
 Adjusts the payload pointer to hide or reveal headers in the payload. More...
 
void inet::tcp::pbuf_ref (struct pbuf *p)
 Increment the reference count of the pbuf. More...
 
void inet::tcp::pbuf_ref_chain (struct pbuf *p)
 
u8_t inet::tcp::pbuf_free (struct pbuf *p)
 Dereference a pbuf chain or queue and deallocate any no-longer-used pbufs at the head of this chain or queue. More...
 
u8_t inet::tcp::pbuf_clen (struct pbuf *p)
 Count number of pbufs in a chain. More...
 
void inet::tcp::pbuf_cat (struct pbuf *h, struct pbuf *t)
 Concatenate two pbufs (each may be a pbuf chain) and take over the caller's reference of the tail pbuf. More...
 
void inet::tcp::pbuf_chain (struct pbuf *h, struct pbuf *t)
 Chain two pbufs (or pbuf chains) together. More...
 
struct pbuf * inet::tcp::pbuf_dechain (struct pbuf *p)
 Dechains the first pbuf from its succeeding pbufs in the chain. More...
 
err_t inet::tcp::pbuf_copy (struct pbuf *p_to, struct pbuf *p_from)
 Create PBUF_RAM copies of pbufs. More...
 
u16_t inet::tcp::pbuf_copy_partial (struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
 Copy (part of) the contents of a packet buffer to an application supplied buffer. More...
 
err_t inet::tcp::pbuf_take (struct pbuf *buf, const void *dataptr, u16_t len)
 Copy application supplied data into a pbuf. More...
 
struct pbuf * inet::tcp::pbuf_coalesce (struct pbuf *p, pbuf_layer layer)
 Creates a single pbuf out of a queue of pbufs. More...
 

Macro Definition Documentation

#define PBUF_FLAG_PUSH   0x01U

indicates this packet's data should be immediately passed to the application

#define pbuf_init ( )
#define PBUF_IP_HLEN   60

Referenced by inet::tcp::pbuf_alloc().

#define PBUF_TRANSPORT_HLEN   20

Referenced by inet::tcp::pbuf_alloc().