From 0acfc5e3b8f3d89011959212a884488b8d21b596 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 8 Nov 2013 09:37:44 +0000 Subject: [PATCH] Move the kernel reporting DAD warning to ipv6nd.c to avoid compile spam --- ipv6.h | 5 ----- ipv6nd.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ipv6.h b/ipv6.h index 6015f4e1..6b5dc1df 100644 --- a/ipv6.h +++ b/ipv6.h @@ -66,11 +66,6 @@ # 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; diff --git a/ipv6nd.c b/ipv6nd.c index 8bd3f564..c8c3ed28 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -54,6 +54,11 @@ #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 -- 2.47.3