Blame SOURCES/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch

306fa1
autofs-5.0.7 -  modules/replicated.c: use sin6_addr.s6_addr32
306fa1
306fa1
From: Chris Packham <chris.packham@alliedtelesis.co.nz>
306fa1
306fa1
The exported in6.h kernel header provides a convenience macro s6_addr32
306fa1
for accessing the 32bit words of an ipv6 address. Use this instead of
306fa1
__in6_u.__u6_addr32.
306fa1
---
306fa1
306fa1
 CHANGELOG            |    1 +
306fa1
 modules/replicated.c |    2 +-
306fa1
 2 files changed, 2 insertions(+), 1 deletions(-)
306fa1
306fa1
306fa1
diff --git a/CHANGELOG b/CHANGELOG
306fa1
index ed17163..4eaa9f9 100644
306fa1
--- a/CHANGELOG
306fa1
+++ b/CHANGELOG
306fa1
@@ -26,6 +26,7 @@
306fa1
 - use numeric protocol ids instead of protoent structs.
306fa1
 - lib/defaults.c: use WITH_LDAP conditional around LDAP types.
306fa1
 - make yellow pages support optional.
306fa1
+- modules/replicated.c: use sin6_addr.s6_addr32.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
diff --git a/modules/replicated.c b/modules/replicated.c
306fa1
index dbd5513..26f64b8 100644
306fa1
--- a/modules/replicated.c
306fa1
+++ b/modules/replicated.c
306fa1
@@ -1146,7 +1146,7 @@ try_name:
306fa1
 				rr4++;
306fa1
 		} else if (this->ai_family == AF_INET6) {
306fa1
 			struct sockaddr_in6 *addr = (struct sockaddr_in6 *) this->ai_addr;
306fa1
-			if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.__in6_u.__u6_addr32))
306fa1
+			if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.s6_addr32))
306fa1
 				rr6++;
306fa1
 		}
306fa1
 		this = this->ai_next;