diff options
-rw-r--r-- | src/vnet/ip/ip6_format.c | 5 |
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) |