summaryrefslogtreecommitdiff
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-01-29 23:15:44 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-01-29 23:15:44 +0000
commite4740817973d6d7dfc0cef370c82e52a9ac9b8a4 (patch)
tree53db771fe65c28dc5395935f2c6f8b4570d8f376 /package/dnsmasq
parentc4938bca5849277d8d5e5d39b83c7dc59439e81b (diff)
downloadmtk-20170518-e4740817973d6d7dfc0cef370c82e52a9ac9b8a4.zip
mtk-20170518-e4740817973d6d7dfc0cef370c82e52a9ac9b8a4.tar.gz
mtk-20170518-e4740817973d6d7dfc0cef370c82e52a9ac9b8a4.tar.bz2
Update to version 2.52
Patch 103-ipv6_fix.patch is removed, because the problem the patch was fixing is now fixed in mainline. Thank you Raphaƫl HUCK for your patch. This fixes #6568. SVN-Revision: 19392
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/Makefile8
-rw-r--r--package/dnsmasq/patches/101-ipv6.patch10
-rw-r--r--package/dnsmasq/patches/103-ipv6_fix.patch48
3 files changed, 8 insertions, 58 deletions
diff --git a/package/dnsmasq/Makefile b/package/dnsmasq/Makefile
index a322343..d3399ab 100644
--- a/package/dnsmasq/Makefile
+++ b/package/dnsmasq/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2006-2009 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dnsmasq
-PKG_VERSION:=2.51
-PKG_RELEASE:=3
+PKG_VERSION:=2.52
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
-PKG_MD5SUM:=97465261a6de5258a3c3edfe51ca16a4
+PKG_MD5SUM:=1bb32fffdb4f977ead607802b5d701d0
include $(INCLUDE_DIR)/package.mk
diff --git a/package/dnsmasq/patches/101-ipv6.patch b/package/dnsmasq/patches/101-ipv6.patch
index 945ddbb..2876d3e 100644
--- a/package/dnsmasq/patches/101-ipv6.patch
+++ b/package/dnsmasq/patches/101-ipv6.patch
@@ -1,15 +1,13 @@
-Index: dnsmasq-2.51/src/config.h
-===================================================================
---- dnsmasq-2.51.orig/src/config.h
-+++ dnsmasq-2.51/src/config.h
-@@ -270,8 +270,9 @@ NOTES:
+--- a/src/config.h
++++ b/src/config.h
+@@ -269,8 +269,9 @@ NOTES:
/* We assume that systems which don't have IPv6
headers don't have ntop and pton either */
-#if defined(INET6_ADDRSTRLEN) && defined(IPV6_V6ONLY) && !defined(NO_IPV6)
+#if defined(INET6_ADDRSTRLEN) && !defined(NO_IPV6)
# define HAVE_IPV6
-+# define IPV6_V6ONLY 26
++# define IPV6_V6ONLY 26
# define ADDRSTRLEN INET6_ADDRSTRLEN
# if defined(SOL_IPV6)
# define IPV6_LEVEL SOL_IPV6
diff --git a/package/dnsmasq/patches/103-ipv6_fix.patch b/package/dnsmasq/patches/103-ipv6_fix.patch
deleted file mode 100644
index 8269b79..0000000
--- a/package/dnsmasq/patches/103-ipv6_fix.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-Index: dnsmasq-2.51/src/netlink.c
-===================================================================
---- dnsmasq-2.51.orig/src/netlink.c
-+++ dnsmasq-2.51/src/netlink.c
-@@ -129,6 +129,7 @@ int iface_enumerate(void *parm, int (*ip
- ssize_t len;
- static unsigned int seq = 0;
- int family = AF_INET;
-+ int ipv4_done = 0;
-
- struct {
- struct nlmsghdr nlh;
-@@ -207,9 +208,12 @@ int iface_enumerate(void *parm, int (*ip
- rta = RTA_NEXT(rta, len1);
- }
-
-- if (addr.s_addr && ipv4_callback)
-+ if (addr.s_addr && ipv4_callback) {
- if (!((*ipv4_callback)(addr, ifa->ifa_index, netmask, broadcast, parm)))
- return 0;
-+ else
-+ ipv4_done = 1;
-+ }
- }
- #ifdef HAVE_IPV6
- else if (ifa->ifa_family == AF_INET6)
-@@ -225,7 +229,7 @@ int iface_enumerate(void *parm, int (*ip
-
- if (addrp && ipv6_callback)
- if (!((*ipv6_callback)(addrp, ifa->ifa_index, ifa->ifa_index, parm)))
-- return 0;
-+ return ipv4_done;
- }
- #endif
- }
-Index: dnsmasq-2.51/src/network.c
-===================================================================
---- dnsmasq-2.51.orig/src/network.c
-+++ dnsmasq-2.51/src/network.c
-@@ -302,7 +302,7 @@ static int create_ipv6_listener(struct l
- bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 ||
- listen(tcpfd, 5) == -1 ||
- bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1)
-- return 0;
-+ return 1;
-
- l = safe_malloc(sizeof(struct listener));
- l->fd = fd;