-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4d678a
commit 4d19a4b
Showing
3 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]> | |
|
||
--- a/src/dnsmasq.c | ||
+++ b/src/dnsmasq.c | ||
@@ -103,10 +103,6 @@ int main (int argc, char **argv) | ||
@@ -105,10 +105,6 @@ int main (int argc, char **argv) | ||
|
||
read_opts(argc, argv, compile_opts); | ||
|
||
|
@@ -26,7 +26,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]> | |
|
||
--- a/src/dnsmasq.h | ||
+++ b/src/dnsmasq.h | ||
@@ -1247,7 +1247,7 @@ extern struct daemon { | ||
@@ -1269,7 +1269,7 @@ extern struct daemon { | ||
int inotifyfd; | ||
#endif | ||
#if defined(HAVE_LINUX_NETWORK) | ||
|
@@ -35,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 | ||
@@ -1452,9 +1452,6 @@ int read_write(int fd, unsigned char *packet, int size, int rw); | ||
@@ -1479,9 +1479,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); | ||
|
@@ -56,7 +56,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]> | |
static char *buffer; | ||
|
||
static inline void add_attr(struct nlmsghdr *nlh, uint16_t type, size_t len, const void *data) | ||
@@ -85,12 +85,7 @@ static inline void add_attr(struct nlmsghdr *nlh, uint16_t type, size_t len, con | ||
@@ -85,12 +85,7 @@ static inline void add_attr(struct nlmsg | ||
|
||
void ipset_init(void) | ||
{ | ||
|
@@ -70,7 +70,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]> | |
(buffer = safe_malloc(BUFF_SZ)) && | ||
(ipset_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_NETFILTER)) != -1 && | ||
(bind(ipset_sock, (struct sockaddr *)&snl, sizeof(snl)) != -1)) | ||
@@ -147,65 +142,14 @@ static int new_add_to_ipset(const char *setname, const union all_addr *ipaddr, i | ||
@@ -147,65 +142,14 @@ static int new_add_to_ipset(const char * | ||
return errno == 0 ? 0 : -1; | ||
} | ||
|
||
|
@@ -140,7 +140,7 @@ Signed-off-by: Kevin Darbyshire-Bryant <[email protected]> | |
my_syslog(LOG_ERR, _("failed to update ipset %s: %s"), setname, strerror(errno)); | ||
--- a/src/util.c | ||
+++ b/src/util.c | ||
@@ -855,22 +855,3 @@ int wildcard_matchn(const char* wildcard, const char* match, int num) | ||
@@ -866,22 +866,3 @@ int wildcard_matchn(const char* wildcard | ||
|
||
return (!num) || (*wildcard == *match); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters