]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Warn when kernel does not support sending ND6 advertisements
authorRoy Marples <roy@marples.name>
Mon, 29 Jul 2019 13:46:25 +0000 (14:46 +0100)
committerRoy Marples <roy@marples.name>
Mon, 29 Jul 2019 13:46:25 +0000 (14:46 +0100)
src/if-bsd.c
src/ipv6nd.c

index 6553e3b7ae25ef6787182bebecf585571c72ffb4..b61021809dc0238f3ea488e9957623647e7fd3d5 100644 (file)
@@ -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;
index 82135970870ad8d279dbaa642d38b47b1d18e90b..bb8cb4dc127ccb5d7aeca8ac89c33ac7419dd9e9 100644 (file)
@@ -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