summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_nexthop.h
diff options
context:
space:
mode:
authorpaul <paul>2004-05-11 12:01:33 +0000
committerpaul <paul>2004-05-11 12:01:33 +0000
commita298b7e1f238c4faa4fbac61ed76fe547acd001f (patch)
treec7cdfa178b3bad5581e92d2b506a1ad0a98cb72f /ripngd/ripng_nexthop.h
parentbc31adf9615dc5bff8c7e2e283628bf9b87fdb95 (diff)
downloadquagga-a298b7e1f238c4faa4fbac61ed76fe547acd001f.tar.bz2
quagga-a298b7e1f238c4faa4fbac61ed76fe547acd001f.tar.xz
2004-05-11 Paul Jakma <paul@dishone.st>
* ripng_nexthop.h: SUNOS_5 does not define s6_addr32 catch ifndef(s6_addr32) && defined(SUNOS_5) and define it ourselves based on the S10 _KERNEL guarded define.
Diffstat (limited to 'ripngd/ripng_nexthop.h')
-rw-r--r--ripngd/ripng_nexthop.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ripngd/ripng_nexthop.h b/ripngd/ripng_nexthop.h
index 2213fc2a..50a86ad0 100644
--- a/ripngd/ripng_nexthop.h
+++ b/ripngd/ripng_nexthop.h
@@ -43,7 +43,12 @@ static inline int
addr6_cmp(struct in6_addr *A, struct in6_addr *B) {
#ifndef s6_addr32
+#if defined(SUNOS_5)
+/* Some SunOS define s6_addr32 only to kernel */
+#define s6_addr32 _S6_un._S6_u32
+#else
#define s6_addr32 __u6_addr.__u6_addr32
+#endif /* SUNOS_5 */
#endif /*s6_addr32*/
#define a(i) A->s6_addr32[i]