Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Periodic scan and probe of IP neighbors to maintain neighbor pools
[vpp.git]
/
src
/
vnet
/
ip
/
ip46_cli.c
diff --git
a/src/vnet/ip/ip46_cli.c
b/src/vnet/ip/ip46_cli.c
index
2508f0e
..
e0e26a2
100644
(file)
--- 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;
}
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");
}
{
return clib_error_return (0, "Invalid interface name");
}
- if (unformat (input, "on"))
+ if (unformat (
line_
input, "on"))
{
ip4_on = 1;
ip6_on = 1;
}
{
ip4_on = 1;
ip6_on = 1;
}
- else if (unformat (input, "off"))
+ else if (unformat (
line_
input, "off"))
{
ip4_on = 0;
ip6_on = 0;
}
{
ip4_on = 0;
ip6_on = 0;
}
- else if (unformat (input, "ip4"))
+ else if (unformat (
line_
input, "ip4"))
{
ip4_on = 1;
ip6_on = 0;
}
{
ip4_on = 1;
ip6_on = 0;
}
- else if (unformat (input, "ip6"))
+ else if (unformat (
line_
input, "ip6"))
{
ip4_on = 0;
ip6_on = 1;
{
ip4_on = 0;
ip6_on = 1;