|
|
@@ -1,4 +1,4 @@
|
|
|
-From 7df4c681678612d196b4e1eec24963d181fdb28a Mon Sep 17 00:00:00 2001
|
|
|
+From 02fbe60e1c7e74d2ba57109575e7bfc238b1b5d4 Mon Sep 17 00:00:00 2001
|
|
|
From: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
Date: Sun, 5 Apr 2020 17:18:23 +0100
|
|
|
Subject: [PATCH] drop runtime old kernel support
|
|
|
@@ -8,9 +8,8 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
src/dnsmasq.c | 4 ----
|
|
|
src/dnsmasq.h | 5 +---
|
|
|
src/ipset.c | 64 ++++-----------------------------------------------
|
|
|
- src/netlink.c | 3 +--
|
|
|
src/util.c | 19 ---------------
|
|
|
- 5 files changed, 6 insertions(+), 89 deletions(-)
|
|
|
+ 4 files changed, 5 insertions(+), 87 deletions(-)
|
|
|
|
|
|
--- a/src/dnsmasq.c
|
|
|
+++ b/src/dnsmasq.c
|
|
|
@@ -27,7 +26,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
|
|
|
--- a/src/dnsmasq.h
|
|
|
+++ b/src/dnsmasq.h
|
|
|
-@@ -1125,7 +1125,7 @@ extern struct daemon {
|
|
|
+@@ -1144,7 +1144,7 @@ extern struct daemon {
|
|
|
int inotifyfd;
|
|
|
#endif
|
|
|
#if defined(HAVE_LINUX_NETWORK)
|
|
|
@@ -36,7 +35,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
#elif defined(HAVE_BSD_NETWORK)
|
|
|
int dhcp_raw_fd, dhcp_icmp_fd, routefd;
|
|
|
#endif
|
|
|
-@@ -1306,9 +1306,6 @@ int read_write(int fd, unsigned char *pa
|
|
|
+@@ -1326,9 +1326,6 @@ int read_write(int fd, unsigned char *pa
|
|
|
void close_fds(long max_fd, int spare1, int spare2, int spare3);
|
|
|
int wildcard_match(const char* wildcard, const char* match);
|
|
|
int wildcard_matchn(const char* wildcard, const char* match, int num);
|
|
|
@@ -139,18 +138,6 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
|
|
|
if (ret == -1)
|
|
|
my_syslog(LOG_ERR, _("failed to update ipset %s: %s"), setname, strerror(errno));
|
|
|
---- a/src/netlink.c
|
|
|
-+++ b/src/netlink.c
|
|
|
-@@ -92,8 +92,7 @@ char *netlink_init(void)
|
|
|
- iov.iov_len = 100;
|
|
|
- iov.iov_base = safe_malloc(iov.iov_len);
|
|
|
-
|
|
|
-- if (daemon->kernel_version >= KERNEL_VERSION(2,6,30) &&
|
|
|
-- setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1)
|
|
|
-+ if (setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1)
|
|
|
- return _("warning: failed to set NETLINK_NO_ENOBUFS on netlink socket");
|
|
|
-
|
|
|
- return NULL;
|
|
|
--- a/src/util.c
|
|
|
+++ b/src/util.c
|
|
|
@@ -786,22 +786,3 @@ int wildcard_matchn(const char* wildcard
|