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 */
72 /** indicates this pbuf was received as link-level broadcast */
74 /** indicates this pbuf was received as link-level multicast */
76 /** indicates this pbuf includes a TCP FIN flag */
79 struct pbuf {
80 /** next pbuf in singly linked pbuf chain */
81 struct pbuf *next;
106 * that refer to this pbuf. This can be pointers from an application,
107 * the stack itself, or pbuf->next pointers from a chain.
113 /** Prototype for a function to free a custom pbuf */
114 typedef void (*pbuf_free_custom_fn)(struct pbuf *p);
116 /** A custom pbuf: like a pbuf, but following a function pointer to free it. */
118 /** The actual pbuf */
119 struct pbuf pbuf;
120 /** This function is called when pbuf_free deallocates this pbuf(_custom) */
143 /* Initializes the pbuf module. This call is empty for now, but may not be in future. */
146 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type);
148 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
152 void pbuf_realloc(struct pbuf *p, u16_t size);
153 u8_t pbuf_header(struct pbuf *p, s16_t header_size);
154 void pbuf_ref(struct pbuf *p);
155 u8_t pbuf_free(struct pbuf *p);
156 u8_t pbuf_clen(struct pbuf *p);
157 void pbuf_cat(struct pbuf *head, struct pbuf *tail);
158 void pbuf_chain(struct pbuf *head, struct pbuf *tail);
159 struct pbuf *pbuf_dechain(struct pbuf *p);
160 err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from);
161 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
162 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
163 struct pbuf *pbuf_coalesce(struct pbuf *p, pbuf_layer layer);
165 err_t pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr,
169 u8_t pbuf_get_at(struct pbuf* p, u16_t offset);
170 u16_t pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n);
171 u16_t pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset);
172 u16_t pbuf_strstr(struct pbuf* p, const char* substr);