6 /* Definitions for the pbuf flag field. These are NOT the flags that
7 * are passed to pbuf_alloc(). */
8 #define UIP_PBUF_FLAG_RAM 0x00U /* Flags that pbuf data is stored in RAM */
9 #define UIP_PBUF_FLAG_ROM 0x01U /* Flags that pbuf data is stored in ROM */
10 #define UIP_PBUF_FLAG_POOL 0x02U /* Flags that the pbuf comes from the pbuf pool */
11 #define UIP_PBUF_FLAG_REF 0x04U /* Flags thet the pbuf payload refers to RAM */
28 struct uip_pbuf
*next
;
37 struct uip_pbuf
* uip_pbuf_alloc(uip_pbuf_layer layer
,u16_t len
,uip_pbuf_flag flag
);
38 u8_t
uip_pbuf_free(struct uip_pbuf
*p
);
39 void uip_pbuf_realloc(struct uip_pbuf
*p
,u16_t new_len
);
40 u8_t
uip_pbuf_header(struct uip_pbuf
*p
,s16_t hdr_size_inc
);
41 void uip_pbuf_cat(struct uip_pbuf
*h
,struct uip_pbuf
*t
);
42 u8_t
uip_pbuf_clen(struct uip_pbuf
*p
);
43 void uip_pbuf_queue(struct uip_pbuf
*p
,struct uip_pbuf
*n
);
44 void uip_pbuf_ref(struct uip_pbuf
*p
);
45 void uip_pbuf_chain(struct uip_pbuf
*h
,struct uip_pbuf
*t
);
46 struct uip_pbuf
* uip_pbuf_dequeue(struct uip_pbuf
*p
);
47 struct uip_pbuf
* uip_pbuf_dechain(struct uip_pbuf
*p
);