74 vlan[vlan_index].priority_cfi_and_id, 0, 12);
76 vlan[vlan_index].priority_cfi_and_id, 12, 1);
78 vlan[vlan_index].priority_cfi_and_id, 13, 3);
95 if (!
unformat (input,
"%U: %U -> %U",
132 v = (
void *) (e + 1);
135 ether_type_edit = &e->
type;
140 ether_type_edit = &v[n_vlan - 1].
type;
144 for (i = 0; i < n_vlan - 1; i++)
uword unformat_ethernet_type_net_byte_order(unformat_input_t *input, va_list *args)
static void * pg_get_edit_group(pg_stream_t *s, u32 group_index)
static void pg_edit_set_fixed(pg_edit_t *e, u64 value)
uword unformat_pg_edit(unformat_input_t *input, va_list *args)
static void pg_edit_copy_type_and_values(pg_edit_t *dst, pg_edit_t *src)
static void pg_ethernet_header_init(pg_ethernet_header_t *e)
static pg_node_t * pg_get_node(uword node_index)
ethernet_main_t ethernet_main
static void * pg_add_edits(pg_stream_t *s, int n_edit_bytes, int n_packet_bytes, u32 group_index)
uword unformat_pg_payload(unformat_input_t *input, va_list *args)
#define pg_edit_init(e, type, field)
static void * pg_create_edit_group(pg_stream_t *s, int n_edit_bytes, int n_packet_bytes, u32 *group_index)
static void pg_ethernet_vlan_header_init(pg_ethernet_vlan_header_t *v, int vlan_index)
vl_api_fib_path_type_t type
static ethernet_type_info_t * ethernet_get_type_info(ethernet_main_t *em, ethernet_type_t type)
#define pg_edit_init_bitfield(e, type, field, field_offset, field_n_bits)
vl_api_address_union_t src_address
sll srl srl sll sra u16x4 i
unformat_function_t * unformat_edit
uword unformat_ethernet_address(unformat_input_t *input, va_list *args)
static void pg_free_edit_group(pg_stream_t *s)
uword unformat_pg_ethernet_header(unformat_input_t *input, va_list *args)
uword unformat_pg_number(unformat_input_t *input, va_list *args)