Go to the documentation of this file.
39 #define MBUF_INDEX(head, offset, size) (((head) + (offset)) & ((size)-1))
46 #define MF_UNICAST (1<<0)
85 static inline unsigned int
Server-mode state structure for one single VPN tunnel.
static bool mbuf_defined(const struct mbuf_set *ms)
void mbuf_dereference_instance(struct mbuf_set *ms, struct multi_instance *mi)
struct mbuf_set * mbuf_init(unsigned int size)
void mbuf_free_buf(struct mbuf_buffer *mb)
static struct multi_instance * mbuf_peek(struct mbuf_set *ms)
void mbuf_free(struct mbuf_set *ms)
struct mbuf_buffer * mbuf_alloc_buf(const struct buffer *buf)
bool mbuf_extract_item(struct mbuf_set *ms, struct mbuf_item *item)
struct multi_instance * instance
Wrapper structure for dynamically allocated memory.
static int mbuf_maximum_queued(const struct mbuf_set *ms)
struct multi_instance * mbuf_peek_dowork(struct mbuf_set *ms)
static unsigned int mbuf_len(const struct mbuf_set *ms)
struct mbuf_buffer * buffer
void mbuf_add_item(struct mbuf_set *ms, const struct mbuf_item *item)