|
static vlib_buffer_t * | vlib_buffer_next_contiguous (vlib_buffer_t *b, u32 buffer_bytes) |
|
static void | vlib_buffer_struct_is_sane (vlib_buffer_t *b) |
|
static void * | vlib_buffer_get_current (vlib_buffer_t *b) |
| Get pointer to current data to process. More...
|
|
static void | vlib_buffer_advance (vlib_buffer_t *b, word l) |
| Advance current data pointer by the supplied (signed!) amount. More...
|
|
static u8 | vlib_buffer_has_space (vlib_buffer_t *b, word l) |
| Check if there is enough space in buffer to advance. More...
|
|
static void | vlib_buffer_reset (vlib_buffer_t *b) |
| Reset current header & length to state they were in when packet was received. More...
|
|
static void * | vlib_get_buffer_opaque (vlib_buffer_t *b) |
| Get pointer to buffer's opaque data array. More...
|
|
static void * | vlib_get_buffer_opaque2 (vlib_buffer_t *b) |
| Get pointer to buffer's opaque2 data array. More...
|
|
static u8 * | vlib_buffer_get_tail (vlib_buffer_t *b) |
| Get pointer to the end of buffer's data. More...
|
|
static void * | vlib_buffer_put_uninit (vlib_buffer_t *b, u8 size) |
| Append uninitialized data to buffer. More...
|
|
static void * | vlib_buffer_push_uninit (vlib_buffer_t *b, u8 size) |
| Prepend uninitialized data to buffer. More...
|
|
static void * | vlib_buffer_make_headroom (vlib_buffer_t *b, u8 size) |
| Make head room, typically for packet headers. More...
|
|
static void * | vlib_buffer_pull (vlib_buffer_t *b, u8 size) |
| Retrieve bytes from buffer head. More...
|
|
u8 | vlib_buffer_add_physmem_region (struct vlib_main_t *vm, vlib_physmem_region_index_t region) |
|
clib_error_t * | vlib_buffer_main_init (struct vlib_main_t *vm) |
|
void | serialize_open_vlib_buffer (serialize_main_t *m, struct vlib_main_t *vm, vlib_serialize_buffer_main_t *sm) |
|
void | unserialize_open_vlib_buffer (serialize_main_t *m, struct vlib_main_t *vm, vlib_serialize_buffer_main_t *sm) |
|
u32 | serialize_close_vlib_buffer (serialize_main_t *m) |
|
void | unserialize_close_vlib_buffer (serialize_main_t *m) |
|
void * | vlib_set_buffer_free_callback (struct vlib_main_t *vm, void *fp) |
|
static u32 | serialize_vlib_buffer_n_bytes (serialize_main_t *m) |
|
vlib buffer structure definition and a few select access methods.
This structure and the buffer allocation mechanism should perhaps live in vnet, but it would take a lot of typing to make it so.
Definition in file buffer.h.