mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-19 22:56:57 +08:00
Added PBUF_REF (payload external, copied on queueing).
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user