[netfilter-cvslog] r3799 -
branches/netfilter-ha/linux-2.6-actact/ct_sync
laforge at netfilter.org
laforge at netfilter.org
Thu Mar 17 12:25:41 CET 2005
Author: laforge at netfilter.org
Date: 2005-03-17 12:25:40 +0100 (Thu, 17 Mar 2005)
New Revision: 3799
Modified:
branches/netfilter-ha/linux-2.6-actact/ct_sync/ct_sync_main.c
Log:
make ipv6 support optional (CONFIG_IPV6)
Modified: branches/netfilter-ha/linux-2.6-actact/ct_sync/ct_sync_main.c
===================================================================
--- branches/netfilter-ha/linux-2.6-actact/ct_sync/ct_sync_main.c 2005-03-17 11:25:08 UTC (rev 3798)
+++ branches/netfilter-ha/linux-2.6-actact/ct_sync/ct_sync_main.c 2005-03-17 11:25:40 UTC (rev 3799)
@@ -1743,13 +1743,17 @@
strip_crlf(ipstrbuf, buf, MAXIPLEN);
+#ifdef CONFIG_IPV6
if (strchr(ipstrbuf, ':')) {
struct sockaddr_in6 *si6 = (struct sockaddr_in6 *)
&ctsi->config.addr;
si6->sin6_family = AF_INET6;
si6->sin6_port = __constant_htons(1999);
+ inet_pton6(ipstrbuf, si6->sin6_addr);
/* FIXME */
- } else {
+ } else
+#endif
+ {
struct sockaddr_in *si = (struct sockaddr_in *)
&ctsi->config.addr;
si->sin_family = AF_INET;
More information about the netfilter-cvslog
mailing list