summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-04-24 11:25:15 +0000
committerRoy Marples <roy@marples.name>2019-04-24 11:25:15 +0000
commit4b87bf8e0971bfdf372d6eeb3ee5e92d7d84690a (patch)
tree3a3343c87e5e5a3fc4b1d1ded1e095126174c755
parent4d53b9d9bb2734b50c884978838b140a9266fa78 (diff)
downloaddhcpcd-4b87bf8e0971bfdf372d6eeb3ee5e92d7d84690a.tar.xz
sun: Fix compile as IN6ADDR_LINKLOCAL_ALLNODES_INIT isn't defined.
-rw-r--r--src/ipv6.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ipv6.h b/src/ipv6.h
index 8762603d..cc3e8a67 100644
--- a/src/ipv6.h
+++ b/src/ipv6.h
@@ -74,6 +74,17 @@
(((d)->s6_addr32[3] ^ (a)->s6_addr32[3]) & (m)->s6_addr32[3]) == 0 )
#endif
+#ifndef IN6ADDR_LINKLOCAL_ALLNODES_INIT
+#define IN6ADDR_LINKLOCAL_ALLNODES_INIT \
+ {{{ 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}}
+#endif
+#ifndef IN6ADDR_LINKLOCAL_ALLROUTERS_INIT
+#define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \
+ {{{ 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }}}
+#endif
+
/*
* BSD kernels don't inform userland of DAD results.
* See the discussion here: