X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fvnet%2Fip%2Fip46_cli.c;h=e0e26a2ce5db20267cd4ebdf2e90537050c502da;hb=7f358b30b04aabe9a35680997cc1eeefb080a869;hp=2508f0e8ee68a294e3c5927c54a5ba1b5b7d149b;hpb=4c53313cd7e9b866412ad3e04b2d91ac098c1398;p=vpp.git diff --git a/src/vnet/ip/ip46_cli.c b/src/vnet/ip/ip46_cli.c index 2508f0e8ee6..e0e26a2ce5d 100644 --- a/src/vnet/ip/ip46_cli.c +++ b/src/vnet/ip/ip46_cli.c @@ -236,27 +236,28 @@ set_reassembly_command_fn (vlib_main_t * vm, return NULL; } - if (!unformat (input, "%U", unformat_vnet_sw_interface, vnm, &sw_if_index)) + if (!unformat_user + (line_input, unformat_vnet_sw_interface, vnm, &sw_if_index)) { return clib_error_return (0, "Invalid interface name"); } - if (unformat (input, "on")) + if (unformat (line_input, "on")) { ip4_on = 1; ip6_on = 1; } - else if (unformat (input, "off")) + else if (unformat (line_input, "off")) { ip4_on = 0; ip6_on = 0; } - else if (unformat (input, "ip4")) + else if (unformat (line_input, "ip4")) { ip4_on = 1; ip6_on = 0; } - else if (unformat (input, "ip6")) + else if (unformat (line_input, "ip6")) { ip4_on = 0; ip6_on = 1;