lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 11 Jun 2008 19:12:11 +0200
From:	Patrick McHardy <kaber@...sh.net>
To:	"Julius R. Volz" <juliusv@...gle.com>
CC:	lvs-devel@...r.kernel.org, netdev@...r.kernel.org,
	horms@...ge.net.au, davem@...emloft.net, vbusam@...gle.com
Subject: Re: [PATCH 02/26] IPVS: Change IPVS data structures to support IPv6
 addresses.

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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ