Home | History | Annotate | Download | only in lwip

Lines Matching refs:pbuf

58   PBUF_RAM, /* pbuf data is stored in RAM */
59 PBUF_ROM, /* pbuf data is stored in ROM */
60 PBUF_REF, /* pbuf comes from the pbuf pool */
61 PBUF_POOL /* pbuf payload refers to RAM */
67 /** indicates this is a custom pbuf: pbuf_free and pbuf_header handle such a
68 a pbuf differently */
70 /** indicates this pbuf is UDP multicast to be looped back */
73 struct pbuf {
74 /** next pbuf in singly linked pbuf chain */
75 struct pbuf *next;
100 * that refer to this pbuf. This can be pointers from an application,
101 * the stack itself, or pbuf->next pointers from a chain.
107 /** Prototype for a function to free a custom pbuf */
108 typedef void (*pbuf_free_custom_fn)(struct pbuf *p);
110 /** A custom pbuf: like a pbuf, but following a function pointer to free it. */
112 /** The actual pbuf */
113 struct pbuf pbuf;
114 /** This function is called when pbuf_free deallocates this pbuf(_custom) */
119 /* Initializes the pbuf module. This call is empty for now, but may not be in future. */
122 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type);
124 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
128 void pbuf_realloc(struct pbuf *p, u16_t size);
129 u8_t pbuf_header(struct pbuf *p, s16_t header_size);
130 void pbuf_ref(struct pbuf *p);
131 u8_t pbuf_free(struct pbuf *p);
132 u8_t pbuf_clen(struct pbuf *p);
133 void pbuf_cat(struct pbuf *head, struct pbuf *tail);
134 void pbuf_chain(struct pbuf *head, struct pbuf *tail);
135 struct pbuf *pbuf_dechain(struct pbuf *p);
136 err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from);
137 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
138 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
139 struct pbuf *pbuf_coalesce(struct pbuf *p, pbuf_layer layer);
141 err_t pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr,
145 u8_t pbuf_get_at(struct pbuf* p, u16_t offset);
146 u16_t pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n);
147 u16_t pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset);
148 u16_t pbuf_strstr(struct pbuf* p, const char* substr);