Displaying 1 result from an estimated 1 matches for "mask_to_numeric".
2003 Jun 21
0
[Bug 103] New: ip6tables -L does not separate address and mask if mask is odd
...destination
DROP all ffc0::ffc0:: anywhere
Here's a patch that fixes it:
--- iptables-1.2.8/ip6tables.c 2003-06-21 18:19:30.000000000 +0300
+++ iptables-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,...