clib_error_t *error = NULL;
bool ip4_set = false, ip6_set = false;
tunnel_mode_t mode = TUNNEL_MODE_P2P;
+ tunnel_encap_decap_flags_t flags = TUNNEL_ENCAP_DECAP_FLAG_NONE;
/* Get a line of input. */
if (!unformat_user (input, unformat_line_input, line_input))
}
else if (unformat (line_input, "outer-table-id %d", &table_id))
;
+ else
+ if (unformat
+ (line_input, "flags %U", unformat_tunnel_encap_decap_flags,
+ &flags))
+ ;
else
{
error =
&src,
&dst,
fib_index,
- TUNNEL_ENCAP_DECAP_FLAG_NONE,
- IP_DSCP_CS0, mode, &sw_if_index);
+ flags, IP_DSCP_CS0, mode, &sw_if_index);
}
switch (rv)
if (ti == ~0)
{
/* *INDENT-OFF* */
- pool_foreach(t, gm->tunnels,
- ({vlib_cli_output(vm, "%U", format_ipip_tunnel, t); }));
+ pool_foreach (t, gm->tunnels)
+ {vlib_cli_output(vm, "%U", format_ipip_tunnel, t); }
/* *INDENT-ON* */
}
else