search for: addr_to_numeric

Displaying 1 result from an estimated 1 matches for "addr_to_numeric".

2003 Jun 21
0
[Bug 103] New: ip6tables -L does not separate address and mask if mask is odd
...es-1.2.8-new/ip6tables.c 2003-06-21 18:37:42.000000000 +0300 @@ -578,10 +578,13 @@ static char * mask_to_numeric(const struct in6_addr *addrp) { - static char buf[20]; + static char buf[50+2]; int l = ipv6_prefix_length(addrp); - if (l == -1) - return addr_to_numeric(addrp); + if (l == -1) { + strcpy(buf, "/"); + strcat(buf, addr_to_numeric(addrp)); + return buf; + } sprintf(buf, "/%d", l); return buf; } ------- You are receiving this mail because: ------- You are on t...