Blame SOURCES/dnsmasq-2.66-Use-dnsmasq-as-default-DNS-server-for-RA-only-if-it-is-doing-DNS.patch

cab8d5
From ab915f837c1db9b8b095158b41028ea71246d68d Mon Sep 17 00:00:00 2001
cab8d5
From: Simon Kelley <simon@thekelleys.org.uk>
cab8d5
Date: Tue, 30 Apr 2013 10:41:28 +0100
cab8d5
Subject: [PATCH] Only use ourselves as default DNS server for RA if we're
cab8d5
 doing DNS.
cab8d5
cab8d5
This makes RA the same as DHCP4/6
cab8d5
---
cab8d5
 src/radv.c | 4 ++--
cab8d5
 1 file changed, 2 insertions(+), 2 deletions(-)
cab8d5
cab8d5
diff --git a/src/radv.c b/src/radv.c
cab8d5
index a708758..72a93cb 100644
cab8d5
--- a/src/radv.c
cab8d5
+++ b/src/radv.c
cab8d5
@@ -300,9 +300,9 @@ static void send_ra(time_t now, int iface, char *iface_name, struct in6_addr *de
cab8d5
 	}
cab8d5
     }
cab8d5
 	
cab8d5
-  if (!done_dns)
cab8d5
+  if (daemon->port == NAMESERVER_PORT && !done_dns)
cab8d5
     {
cab8d5
-      /* default == us. */
cab8d5
+      /* default == us, as long as we are supplying DNS service. */
cab8d5
       put_opt6_char(ICMP6_OPT_RDNSS);
cab8d5
       put_opt6_char(3);
cab8d5
       put_opt6_short(0);
cab8d5
-- 
cab8d5
1.8.1.4
cab8d5