Added PBUF_REF (payload external, copied on queueing).

This commit is contained in:
likewise
2002-11-18 09:51:48 +00:00
parent dbac2ff0b3
commit 1b798ed6d3
2 changed files with 58 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ typedef enum {
typedef enum {
PBUF_RAM,
PBUF_ROM,
PBUF_REF,
PBUF_POOL
} pbuf_flag;
@@ -59,6 +60,7 @@ typedef enum {
#define PBUF_FLAG_ROM 0x01 /* Flags that pbuf data is stored in ROM. */
#define PBUF_FLAG_POOL 0x02 /* Flags that the pbuf comes from the
pbuf pool. */
#define PBUF_FLAG_REF 0x03
struct pbuf {
struct pbuf *next;
@@ -149,4 +151,7 @@ void pbuf_chain(struct pbuf *h, struct pbuf *t);
the pbuf chain or NULL if the pbuf p was not chained. */
struct pbuf *pbuf_dechain(struct pbuf *p);
struct pbuf *pbuf_unref(struct pbuf *f);
#endif /* __LWIP_PBUF_H__ */