Blame SOURCES/dnsmasq-2.66-Fix_failure_to_start_with_ENOTSOCK.patch

cab8d5
From cfcad42ff1ddee8e64d120f18016a654152d0215 Mon Sep 17 00:00:00 2001
cab8d5
From: Simon Kelley <simon@thekelleys.org.uk>
cab8d5
Date: Fri, 17 May 2013 11:32:03 +0100
cab8d5
Subject: [PATCH] Fix failure to start with ENOTSOCK
cab8d5
cab8d5
---
cab8d5
 CHANGELOG     | 6 ++++++
cab8d5
 src/dnsmasq.c | 2 +-
cab8d5
 2 files changed, 7 insertions(+), 1 deletion(-)
cab8d5
cab8d5
diff --git a/CHANGELOG b/CHANGELOG
cab8d5
index 7aa0024..48b6070 100644
cab8d5
--- a/CHANGELOG
cab8d5
+++ b/CHANGELOG
cab8d5
@@ -31,7 +31,13 @@ version 2.67
cab8d5
 	    want to continue to bind the aliases too, you need to add
cab8d5
 	    eg. --interface=eth0:0 to the config. 
cab8d5
 	
cab8d5
+	    Fix "failed to set SO_BINDTODEVICE on DHCP socket: Socket 
cab8d5
+	    operation on non-socket" error on startup with
cab8d5
+	    configurations which have exactly one --interface option
cab8d5
+	    and do RA but _not_ DHCPv6. Thanks to Trever Adams for the
cab8d5
+	    bug report.
cab8d5
 
cab8d5
+		
cab8d5
 version 2.66
cab8d5
             Add the ability to act as an authoritative DNS
cab8d5
             server. Dnsmasq can now answer queries from the wider 'net
cab8d5
diff --git a/src/dnsmasq.c b/src/dnsmasq.c
cab8d5
index 43b8cb1..b0f984d 100644
cab8d5
--- a/src/dnsmasq.c
cab8d5
+++ b/src/dnsmasq.c
cab8d5
@@ -248,7 +248,7 @@ int main (int argc, char **argv)
cab8d5
 #endif
cab8d5
 
cab8d5
 #if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP6)
cab8d5
-      if (daemon->dhcp6)
cab8d5
+      if (daemon->doing_dhcp6)
cab8d5
 	bindtodevice(daemon->dhcp6fd);
cab8d5
 #endif
cab8d5
     }
cab8d5
-- 
cab8d5
1.8.1.4
cab8d5