Go to the documentation of this file.
54 for (i = 0; i < (int) ms->
len; ++i)
138 for (i = 0; i < (int) ms->
len; ++i)
157 for (i = 0; i < (int) ms->
len; ++i)
165 msg(
D_MBUF,
"MBUF: dereferenced queued packet");
bool mbuf_extract_item(struct mbuf_set *ms, struct mbuf_item *item)
Server-mode state structure for one single VPN tunnel.
struct multi_instance * mbuf_peek_dowork(struct mbuf_set *ms)
struct buffer clone_buf(const struct buffer *buf)
void mbuf_add_item(struct mbuf_set *ms, const struct mbuf_item *item)
#define ALLOC_OBJ(dptr, type)
void mbuf_free(struct mbuf_set *ms)
static size_t adjust_power_of_2(size_t u)
struct multi_instance * instance
Wrapper structure for dynamically allocated memory.
struct mbuf_buffer * mbuf_alloc_buf(const struct buffer *buf)
#define MBUF_INDEX(head, offset, size)
void free_buf(struct buffer *buf)
void mbuf_free_buf(struct mbuf_buffer *mb)
#define ALLOC_OBJ_CLEAR(dptr, type)
struct mbuf_buffer * buffer
void mbuf_dereference_instance(struct mbuf_set *ms, struct multi_instance *mi)
#define ALLOC_ARRAY(dptr, type, n)
struct mbuf_set * mbuf_init(unsigned int size)