Prusa MINI Firmware overview
|
Go to the documentation of this file.
38 #ifndef LWIP_HDR_PBUF_H
39 #define LWIP_HDR_PBUF_H
54 #ifndef LWIP_SUPPORT_CUSTOM_PBUF
55 #define LWIP_SUPPORT_CUSTOM_PBUF ((IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG))
61 #define PBUF_TRANSPORT_HLEN 20
63 #define PBUF_IP_HLEN 40
65 #define PBUF_IP_HLEN 20
128 #define PBUF_FLAG_PUSH 0x01U
131 #define PBUF_FLAG_IS_CUSTOM 0x02U
133 #define PBUF_FLAG_MCASTLOOP 0x04U
135 #define PBUF_FLAG_LLBCAST 0x08U
137 #define PBUF_FLAG_LLMCAST 0x10U
139 #define PBUF_FLAG_TCP_FIN 0x20U
188 #if LWIP_SUPPORT_CUSTOM_PBUF
190 typedef void (*pbuf_free_custom_fn)(
struct pbuf *p);
197 pbuf_free_custom_fn custom_free_function;
202 #ifndef PBUF_POOL_FREE_OOSEQ
203 #define PBUF_POOL_FREE_OOSEQ 1
205 #if LWIP_TCP && TCP_QUEUE_OOSEQ && NO_SYS && PBUF_POOL_FREE_OOSEQ
206 extern volatile u8_t pbuf_free_ooseq_pending;
207 void pbuf_free_ooseq(
void);
211 #define PBUF_CHECK_FREE_OOSEQ() do { if(pbuf_free_ooseq_pending) { \
214 pbuf_free_ooseq(); }}while(0)
217 #define PBUF_CHECK_FREE_OOSEQ()
224 #if LWIP_SUPPORT_CUSTOM_PBUF
226 struct pbuf_custom *p,
void *payload_mem,
227 u16_t payload_mem_len);
244 #if LWIP_CHECKSUM_ON_COPY
245 err_t pbuf_fill_chksum(
struct pbuf *p,
u16_t start_offset,
const void *dataptr,
248 #if LWIP_TCP && TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
249 void pbuf_split_64k(
struct pbuf *p,
struct pbuf **rest);
u16_t pbuf_memfind(const struct pbuf *p, const void *mem, u16_t mem_len, u16_t start_offset)
Definition: pbuf.c:1404
struct pbuf * pbuf_skip(struct pbuf *in, u16_t in_offset, u16_t *out_offset)
Definition: pbuf.c:1131
int pbuf_try_get_at(const struct pbuf *p, u16_t offset)
Definition: pbuf.c:1317
u16_t len
Definition: pbuf.h:159
int16_t s16_t
Definition: arch.h:122
u16_t ref
Definition: pbuf.h:172
uint16_t u16_t
Definition: arch.h:121
u16_t tot_len
Definition: pbuf.h:156
uint8_t type
Definition: UsbCore.h:184
uint8_t data[8]
Definition: masstorage.h:49
const void * payload
Definition: pbuf.h:185
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
Definition: pbuf.c:1149
u16_t pbuf_clen(const struct pbuf *p)
Definition: pbuf.c:800
struct pbuf * next
Definition: pbuf.h:144
u8_t pbuf_free(struct pbuf *p)
Definition: pbuf.c:715
struct pbuf * pbuf_dechain(struct pbuf *p)
Definition: pbuf.c:899
u16_t pbuf_strstr(const struct pbuf *p, const char *substr)
Definition: pbuf.c:1431
u8_t flags
Definition: pbuf.h:165
u16_t pbuf_copy_partial(const struct pbuf *p, void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1015
struct pbuf * pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type)
Definition: pbuf.c:248
uint8_t u8_t
Definition: arch.h:119
struct pbuf * pbuf_coalesce(struct pbuf *p, pbuf_layer layer)
Definition: pbuf.c:1229
pbuf_layer
Definition: pbuf.h:72
u8_t pbuf_get_at(const struct pbuf *p, u16_t offset)
Definition: pbuf.c:1299
int layer
Definition: g29_auto.py:41
pbuf_type
Definition: pbuf.h:101
void
Definition: png.h:1083
void pbuf_realloc(struct pbuf *p, u16_t size)
Definition: pbuf.c:493
err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
Definition: pbuf.c:948
err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1193
void pbuf_chain(struct pbuf *head, struct pbuf *tail)
Definition: pbuf.c:882
void pbuf_ref(struct pbuf *p)
Definition: pbuf.c:820
void pbuf_cat(struct pbuf *head, struct pbuf *tail)
Definition: pbuf.c:840
u16_t pbuf_memcmp(const struct pbuf *p, u16_t offset, const void *s2, u16_t n)
Definition: pbuf.c:1362
s8_t err_t
Definition: err.h:57
struct pbuf * next
Definition: pbuf.h:182
u8_t type
Definition: pbuf.h:162
u8_t pbuf_header_force(struct pbuf *p, s16_t header_size)
Definition: pbuf.c:675
png_uint_32 length
Definition: png.c:2247
void pbuf_put_at(struct pbuf *p, u16_t offset, u8_t data)
Definition: pbuf.c:1339
u8_t pbuf_header(struct pbuf *p, s16_t header_size)
Definition: pbuf.c:665
void * payload
Definition: pbuf.h:147
static png_bytep size_t size
Definition: pngwrite.c:2170