Thread (75 messages) 75 messages, 6 authors, 2008-06-30

Re: [PATCH 24/26] IPVS: Add IPv6 support to userspace interface.

From: Julius Volz <hidden>
Date: 2008-06-12 09:46:43
Also in: lvs-devel

On Thu, Jun 12, 2008 at 3:55 AM, Brian Haley [off-list ref] wrote:
Julius R. Volz wrote:
quoted
+#ifdef CONFIG_IP_VS_IPV6
+               struct in6_addr zero_addr = { .s6_addr32 = {0, 0, 0, 0} };
+               if (usvc->af == AF_INET6 && !usvc->fwmark &&
+                   ipv6_addr_equal(&usvc->addr.v6,&zero_addr) &&
!usvc->port) {
+                       ret = ip_vs_zero_all();
+                       goto out_unlock;
+               }
You can change this ipv6_addr_equal() to ipv6_addr_any(&usvc->addr.v6) and
get rid of the zero_addr variable mess.
Thanks, will do that!

Julius

-- 
Google Switzerland GmbH
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help