Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3999a4b
)
ip: fix format_ip6_address_and_mask() bug
63/27863/2
author
Chenmin Sun
<chenmin.sun@intel.com>
Sun, 12 Jul 2020 00:08:36 +0000
(08:08 +0800)
committer
Florin Coras
<florin.coras@gmail.com>
Tue, 14 Jul 2020 14:34:57 +0000
(14:34 +0000)
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
src/vnet/ip/ip6_format.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip6_format.c
b/src/vnet/ip/ip6_format.c
index
5b8df23
..
1b8ff1e
100644
(file)
--- 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_ip
4
_address, &am->addr);
+ return format (s, "%U", format_ip
6
_address, &am->addr);
return format (s, "%U/%U", format_ip6_address, &am->addr,
- format_ip
4
_address, &am->mask);
+ format_ip
6
_address, &am->mask);
}
-
/* Parse an IP6 address. */
uword
unformat_ip6_address (unformat_input_t * input, va_list * args)