33 #ifndef __LWIP_PBUF_H__ 34 #define __LWIP_PBUF_H__ 45 #define LWIP_SUPPORT_CUSTOM_PBUF (IP_FRAG && !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF) 47 #define PBUF_TRANSPORT_HLEN 20 48 #define PBUF_IP_HLEN 20 66 #define PBUF_FLAG_PUSH 0x01U 69 #define PBUF_FLAG_IS_CUSTOM 0x02U 71 #define PBUF_FLAG_MCASTLOOP 0x04U 73 #define PBUF_FLAG_LLBCAST 0x08U 75 #define PBUF_FLAG_LLMCAST 0x10U 77 #define PBUF_FLAG_TCP_FIN 0x20U 112 #if LWIP_SUPPORT_CUSTOM_PBUF 114 typedef void (*pbuf_free_custom_fn)(
struct pbuf *
p);
121 pbuf_free_custom_fn custom_free_function;
125 #if LWIP_TCP && TCP_QUEUE_OOSEQ 127 #ifndef PBUF_POOL_FREE_OOSEQ 128 #define PBUF_POOL_FREE_OOSEQ 1 130 #if NO_SYS && PBUF_POOL_FREE_OOSEQ 131 extern volatile u8_t pbuf_free_ooseq_pending;
132 void pbuf_free_ooseq();
136 #define PBUF_CHECK_FREE_OOSEQ() do { if(pbuf_free_ooseq_pending) { \ 139 pbuf_free_ooseq(); }}while(0) 147 #if LWIP_SUPPORT_CUSTOM_PBUF 149 struct pbuf_custom *
p,
void *payload_mem,
150 u16_t payload_mem_len);
164 #if LWIP_CHECKSUM_ON_COPY u16_t pbuf_memcmp(struct pbuf *p, u16_t offset, const void *s2, u16_t n)
void pbuf_chain(struct pbuf *head, struct pbuf *tail)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
struct outqueuenode * tail
struct outqueuenode * head
u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset)
u8_t pbuf_clen(struct pbuf *p)
struct pbuf * pbuf_dechain(struct pbuf *p)
u8_t pbuf_free(struct pbuf *p)
void pbuf_ref(struct pbuf *p)
u8_t pbuf_header(struct pbuf *p, s16_t header_size)
GLenum GLuint GLenum GLsizei const GLchar * buf
u8_t pbuf_get_at(struct pbuf *p, u16_t offset)
GLenum GLuint GLenum GLsizei length
GLenum GLuint GLint GLint layer
u16_t pbuf_strstr(struct pbuf *p, const char *substr)
void pbuf_cat(struct pbuf *head, struct pbuf *tail)
struct pbuf * pbuf_coalesce(struct pbuf *p, pbuf_layer layer)
static u32_t chksum(void *dataptr, u16_t len)
err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from)
void pbuf_realloc(struct pbuf *p, u16_t size)
u16_t pbuf_memfind(struct pbuf *p, const void *mem, u16_t mem_len, u16_t start_offset)
int const JOCTET * dataptr
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
struct pbuf * pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type)
static substr_t substr(const WCHAR *str, size_t len)
GLuint GLuint GLsizei GLenum type