From: Roy Marples Date: Wed, 24 Apr 2019 11:25:15 +0000 (+0000) Subject: sun: Fix compile as IN6ADDR_LINKLOCAL_ALLNODES_INIT isn't defined. X-Git-Tag: v7.2.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b87bf8e0971bfdf372d6eeb3ee5e92d7d84690a;p=thirdparty%2Fdhcpcd.git sun: Fix compile as IN6ADDR_LINKLOCAL_ALLNODES_INIT isn't defined. --- 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: