aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-04-17 17:48:30 +0200
committerKlement Sekera <ksekera@cisco.com>2018-04-17 18:07:25 +0200
commit88c50b7d4b6061d4029426c07aedd62a1dd0e3f4 (patch)
treebe2c64167b1d816fbf38a57af36976c2f9484958
parent18bde8a579960aa46f43ffbe5c2905774bd81a35 (diff)
VPP-1243: fix reassembly CLI
Change-Id: Ie20aaf0eb1a5a338a54f0de4d6da661431be5163 Signed-off-by: Klement Sekera <ksekera@cisco.com>
-rw-r--r--src/vnet/ip/ip46_cli.c11
1 files changed, 6 insertions, 5 deletions
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;