From: Roy Marples Date: Mon, 29 Jul 2019 13:46:25 +0000 (+0100) Subject: BSD: Warn when kernel does not support sending ND6 advertisements X-Git-Tag: v8.0.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfef3fd36c3f13d868953e2a328397f6a0f43116;p=thirdparty%2Fdhcpcd.git BSD: Warn when kernel does not support sending ND6 advertisements --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 6553e3b7..b6102180 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -543,7 +543,7 @@ if_route(unsigned char cmd, const struct rt *rt) * try to encourage someone to fix that by logging a waring during compile. */ #if defined(__FreeBSD__) || defined(__OpenBSD__) -#warning OS does not allow IPv6 address sharing +#warning kernel does not allow IPv6 address sharing if (!gateway_unspec || rt->rt_dest.sa_family!=AF_INET6) #endif rtm->rtm_addrs |= RTA_IFP; diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 82135970..bb8cb4dc 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -521,6 +521,8 @@ ipv6nd_advertise(struct ipv6_addr *ia) eloop_timeout_delete(ctx->eloop, ipv6nd_sendadvertisement, iaf); ipv6nd_sendadvertisement(iaf); } +#elif !defined(SMALL) +#warning kernel does not support userland sending ND6 advertisements #endif /* ND6_ADVERTISE */ static void