summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch')
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch
new file mode 100644
index 0000000000..4516bc5f25
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch
@@ -0,0 +1,39 @@
1autofs-5.0.7 - modules/replicated.c: use sin6_addr.s6_addr32
2
3From: Chris Packham <chris.packham@alliedtelesis.co.nz>
4
5The exported in6.h kernel header provides a convenience macro s6_addr32
6for accessing the 32bit words of an ipv6 address. Use this instead of
7__in6_u.__u6_addr32.
8---
9
10 CHANGELOG | 1 +
11 modules/replicated.c | 2 +-
12 2 files changed, 2 insertions(+), 1 deletions(-)
13
14
15diff --git a/CHANGELOG b/CHANGELOG
16index ed17163..4eaa9f9 100644
17--- a/CHANGELOG
18+++ b/CHANGELOG
19@@ -26,6 +26,7 @@
20 - use numeric protocol ids instead of protoent structs.
21 - lib/defaults.c: use WITH_LDAP conditional around LDAP types.
22 - make yellow pages support optional.
23+- modules/replicated.c: use sin6_addr.s6_addr32.
24
25 25/07/2012 autofs-5.0.7
26 =======================
27diff --git a/modules/replicated.c b/modules/replicated.c
28index dbd5513..26f64b8 100644
29--- a/modules/replicated.c
30+++ b/modules/replicated.c
31@@ -1146,7 +1146,7 @@ try_name:
32 rr4++;
33 } else if (this->ai_family == AF_INET6) {
34 struct sockaddr_in6 *addr = (struct sockaddr_in6 *) this->ai_addr;
35- if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.__in6_u.__u6_addr32))
36+ if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.s6_addr32))
37 rr6++;
38 }
39 this = this->ai_next;