]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Move the kernel reporting DAD warning to ipv6nd.c to avoid compile spam
authorRoy Marples <roy@marples.name>
Fri, 8 Nov 2013 09:37:44 +0000 (09:37 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Nov 2013 09:37:44 +0000 (09:37 +0000)
ipv6.h
ipv6nd.c

diff --git a/ipv6.h b/ipv6.h
index 6015f4e129fe5fdadadd0700a74d967b7a78b10a..6b5dc1dfd0be36f651abec61c9c6c4491654b28f 100644 (file)
--- a/ipv6.h
+++ b/ipv6.h
 #  endif
 #endif
 
-#if defined(LISTEN_DAD) && defined(INET6)
-#  warning kernel does not report DAD results to userland
-#  warning listening to duplicated addresses on the wire
-#endif
-
 struct ipv6_addr {
        TAILQ_ENTRY(ipv6_addr) next;
        struct interface *iface;
index 8bd3f564a5d928dd5b02812c67ce800eb9a295e9..c8c3ed28645a15809cf2caf6ba744759f6b10674 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
 #include "ipv6nd.h"
 #include "script.h"
 
+#if defined(LISTEN_DAD) && defined(INET6)
+#  warning kernel does not report DAD results to userland
+#  warning listening to duplicated addresses on the wire
+#endif
+
 /* Debugging Router Solicitations is a lot of spam, so disable it */
 //#define DEBUG_RS