LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [PATCH 02/26] IPVS: Change IPVS data structures to support IPv6 addr

To: "Julius R. Volz" <juliusv@xxxxxxxxxx>
Subject: Re: [PATCH 02/26] IPVS: Change IPVS data structures to support IPv6 addresses.
Cc: lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, horms@xxxxxxxxxxxx, davem@xxxxxxxxxxxxx, vbusam@xxxxxxxxxx
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Wed, 11 Jun 2008 19:12:11 +0200
Julius R. Volz wrote:
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 9a51eba..b7b181e 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -11,7 +11,12 @@
#include <linux/sysctl.h> /* For ctl_path */ -#define IP_VS_VERSION_CODE 0x010201
+#ifdef __KERNEL__
+#include <linux/in6.h>           /* For struct in6_addr */
+#include <linux/ipv6.h>          /* For struct ipv6hdr */

include/net is always kernel only. At least it should be that way.
+#endif /* __KERNEL */
+
+#define IP_VS_VERSION_CODE     0x020000
 #define NVERSION(version)                      \
        (version >> 16) & 0xFF,                       \
        (version >> 8) & 0xFF,                        \
@@ -95,6 +100,20 @@
 #define IP_VS_SCHEDNAME_MAXLEN 16
 #define IP_VS_IFNAME_MAXLEN    16
+union ip_vs_addr_user {
+       __be32                  v4;
+       struct in6_addr         v6;
+};

Can't you use nf_inet_addr for this?

--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>