]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables_ip6addr_to_numeric: fix typo in comment
authorMaciej Zenczykowski <maze@google.com>
Mon, 4 Apr 2011 13:31:09 +0000 (15:31 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:31:09 +0000 (15:31 +0200)
An IPv6 address consists of eight hexadecimal 16-bit values seperated
by colons, or alternatively, six (not five) of these followed by a colon
and an IPv4 address in standard dotted decimal quad notation
(for IPv4 mapped addresses and the like).

Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
xtables.c

index 352963f48762e0b9bce572cf5ae364e0d0da23d5..7d36742389e7b4d71b8a461851120999ea144314 100644 (file)
--- a/xtables.c
+++ b/xtables.c
@@ -1336,7 +1336,7 @@ void xtables_ipparse_any(const char *name, struct in_addr **addrpp,
 
 const char *xtables_ip6addr_to_numeric(const struct in6_addr *addrp)
 {
-       /* 0000:0000:0000:0000:0000:000.000.000.000
+       /* 0000:0000:0000:0000:0000:0000:000.000.000.000
         * 0000:0000:0000:0000:0000:0000:0000:0000 */
        static char buf[50+1];
        return inet_ntop(AF_INET6, addrp, buf, sizeof(buf));