aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2020-07-12 08:08:36 +0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 19:47:21 +0000
commitedec3f6041d6ecdb2cc2f497641e63fd9a134d88 (patch)
tree591a8466391aaaee4646a1b3ab9b7ebf66be90f3
parent806f3f617784fbc507fd8a8ed3e1cce75915a66b (diff)
ip: fix format_ip6_address_and_mask() bug
Previously there's a format_ip4_address in format_ip6... This patch fixes this typo Type: fix Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: Ice124db6594720ed35a992d069341f399c331e1d (cherry picked from commit e30f9c5c6342a0f2430848ec4166b75596642964)
-rw-r--r--src/vnet/ip/ip6_format.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/ip/ip6_format.c b/src/vnet/ip/ip6_format.c
index 4d1793970df..6287195507b 100644
--- a/src/vnet/ip/ip6_format.c
+++ b/src/vnet/ip/ip6_format.c
@@ -127,13 +127,12 @@ format_ip6_address_and_mask (u8 * s, va_list * args)
return format (s, "any");
if (am->mask.as_u64[0] == ~0 && am->mask.as_u64[1] == ~0)
- return format (s, "%U", format_ip4_address, &am->addr);
+ return format (s, "%U", format_ip6_address, &am->addr);
return format (s, "%U/%U", format_ip6_address, &am->addr,
- format_ip4_address, &am->mask);
+ format_ip6_address, &am->mask);
}
-
/* Parse an IP6 address. */
uword
unformat_ip6_address (unformat_input_t * input, va_list * args)