diff options
author | Pierre Pfister <ppfister@cisco.com> | 2017-09-18 11:40:32 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-09-20 11:49:08 +0000 |
commit | 1bfd37295f5cd332b7326923f1fbd5e0415829cd (patch) | |
tree | 9f4b3b8136acac3fcb84f9d38f289d72b1d93053 /src/vnet/ip/ip4_forward.c | |
parent | 4619e19cf0e10b9f69eee535c91053930ec14a74 (diff) |
Add ip6-local feature arc
ip4-local feature arc existed but not ip6-local one.
This patch also adds node name to the 'show ip local' command and fixes
a minor include issue in vnet/ip/ip4.h file.
Change-Id: I9bb8a7159917d58f89afcce974680de20d946a70
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip4_forward.c')
-rwxr-xr-x | src/vnet/ip/ip4_forward.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index c526003c382..0a34497da7a 100755 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -1922,7 +1922,13 @@ show_ip_local_command_fn (vlib_main_t * vm, for (i = 0; i < ARRAY_LEN (lm->local_next_by_ip_protocol); i++) { if (lm->local_next_by_ip_protocol[i] != IP_LOCAL_NEXT_PUNT) - vlib_cli_output (vm, "%d", i); + { + u32 node_index = vlib_get_node (vm, + ip4_local_node.index)-> + next_nodes[lm->local_next_by_ip_protocol[i]]; + vlib_cli_output (vm, "%d: %U", i, format_vlib_node_name, vm, + node_index); + } } return 0; } |