diff options
author | John Lo <loj@cisco.com> | 2016-09-27 12:05:00 -0400 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2016-09-27 12:05:00 -0400 |
commit | 719311ba824a90641c08c387cf9e7fa49676edc8 (patch) | |
tree | 9683adf5d3c283a0420cf2f2bf9feb4bdd78d7fc | |
parent | a4509cfd468cddbc4c1e913f76185760bda02760 (diff) |
Fix "show adj nbr" displaying IP4 address for IP6 neighbors
Change-Id: Ic453e68bbd3d5ae8d57b513da6781bb957fc84a4
Signed-off-by: John Lo <loj@cisco.com>
-rw-r--r-- | vnet/vnet/adj/adj_nbr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/adj/adj_nbr.c b/vnet/vnet/adj/adj_nbr.c index 7da1becd4c1..de137d1dac0 100644 --- a/vnet/vnet/adj/adj_nbr.c +++ b/vnet/vnet/adj/adj_nbr.c @@ -721,7 +721,7 @@ format_adj_nbr_incomplete (u8* s, va_list *ap) s = format (s, "arp-%U", format_fib_link, adj->ia_link); s = format (s, ": via %U", - format_ip46_address, &adj->sub_type.nbr.next_hop); + format_ip46_address, &adj->sub_type.nbr.next_hop, IP46_TYPE_ANY); s = format (s, " %U", format_vnet_sw_interface_name, vnm, @@ -741,7 +741,7 @@ format_adj_nbr (u8* s, va_list *ap) s = format (s, "%U", format_fib_link, adj->ia_link); s = format (s, " via %U ", - format_ip46_address, &adj->sub_type.nbr.next_hop); + format_ip46_address, &adj->sub_type.nbr.next_hop, IP46_TYPE_ANY); s = format (s, "%U", format_vnet_rewrite, vnm->vlib_main, &adj->rewrite_header, sizeof (adj->rewrite_data), 0); |