Go to the source code of this file.
|
#define | PG_EDIT_PACKET_LENGTH (-1) |
|
#define | PG_EDIT_LO 0 |
|
#define | PG_EDIT_HI 1 |
|
#define | pg_edit_init_bitfield(e, type, field, field_offset, field_n_bits) |
|
#define | pg_edit_init(e, type, field) pg_edit_init_bitfield(e,type,field,0,STRUCT_BITS_OF(type,field)) |
|
|
static void | pg_edit_free (pg_edit_t *e) |
|
static uword | pg_edit_n_alloc_bytes (pg_edit_t *e) |
|
static void | pg_edit_alloc_value (pg_edit_t *e, int i) |
|
void | pg_edit_set_value (pg_edit_t *e, int hi_or_lo, u64 value) |
|
static void | pg_edit_set_fixed (pg_edit_t *e, u64 value) |
|
static void | pg_edit_copy_type_and_values (pg_edit_t *dst, pg_edit_t *src) |
|
static u64 | pg_edit_get_value (pg_edit_t *e, int hi_or_lo) |
|
static uword | pg_edit_is_fixed_with_value (pg_edit_t *e, u64 value) |
|
uword | unformat_pg_edit (unformat_input_t *input, va_list *args) |
|
uword | unformat_pg_payload (unformat_input_t *input, va_list *args) |
|
uword | unformat_pg_number (unformat_input_t *input, va_list *args) |
|
uword | unformat_pg_interface (unformat_input_t *input, va_list *args) |
|
#define pg_edit_init_bitfield |
( |
|
e, |
|
|
|
type, |
|
|
|
field, |
|
|
|
field_offset, |
|
|
|
field_n_bits |
|
) |
| |
Value: \
\
\
\
- (field_offset) - 1) /
BITS (
u8)); \
\
(e)->lsb_bit_offset = _bo *
BITS (
u8) + ((field_offset) %
BITS (
u8)); \
(e)->n_bits = (field_n_bits); \
} while (0)
#define STRUCT_BITS_OF(t, f)
#define STRUCT_OFFSET_OF(t, f)
vl_api_fib_path_type_t type
Definition at line 98 of file edit.h.
#define PG_EDIT_PACKET_LENGTH (-1) |
Enumerator |
---|
PG_EDIT_INVALID_TYPE |
|
PG_EDIT_FIXED |
|
PG_EDIT_INCREMENT |
|
PG_EDIT_RANDOM |
|
PG_EDIT_UNSPECIFIED |
|
Definition at line 46 of file edit.h.
static void pg_edit_alloc_value |
( |
pg_edit_t * |
e, |
|
|
int |
i |
|
) |
| |
|
inlinestatic |
static u64 pg_edit_get_value |
( |
pg_edit_t * |
e, |
|
|
int |
hi_or_lo |
|
) |
| |
|
inlinestatic |
void pg_edit_set_value |
( |
pg_edit_t * |
e, |
|
|
int |
hi_or_lo, |
|
|
u64 |
value |
|
) |
| |