diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-29 09:06:27 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-29 09:06:27 +0100 |
commit | 40fcb885d64153d3196f8a6ad8ca9a679b4a61b5 (patch) | |
tree | c65da15b51c5fcf5dd5e5f2c038fa57455b03a21 /package/knock/patches/patch-src_knockd_c | |
parent | ede0b881160024db41b69198207a3e9905eea6c9 (diff) | |
parent | 50dc4372e21202d2e285bd295ec18c759b66c4d9 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/knock/patches/patch-src_knockd_c')
-rw-r--r-- | package/knock/patches/patch-src_knockd_c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/package/knock/patches/patch-src_knockd_c b/package/knock/patches/patch-src_knockd_c index 7d8512c96..e3a2d2955 100644 --- a/package/knock/patches/patch-src_knockd_c +++ b/package/knock/patches/patch-src_knockd_c @@ -1,20 +1,23 @@ -$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ ---- knock-0.5.orig/src/knockd.c 2005-06-27 07:11:34.000000000 +0200 -+++ knock-0.5/src/knockd.c 2009-06-01 21:43:53.000000000 +0200 -@@ -46,6 +46,7 @@ - #include <syslog.h> - #include <pcap.h> - #include <errno.h> -+#include <linux/limits.h> - #include "list.h" - - static char version[] = "0.5"; -@@ -1064,7 +1065,7 @@ char* get_ip(const char* iface, char *bu - return(NULL); - } - -- bzero((void*)(&ifr.ifr_name), sizeof(ifr.ifr_name)); -+ memset((void*)(&ifr.ifr_name), 0, sizeof(ifr.ifr_name)); - strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)-1); - ifr.ifr_name[sizeof(ifr.ifr_name)-1] = '\0'; - if(ioctl(s, SIOCGIFADDR, &ifr)) { +--- knock-0.6.orig/src/knockd.c 2013-04-08 20:11:56.000000000 +0200 ++++ knock-0.6/src/knockd.c 2014-01-16 16:59:04.000000000 +0100 +@@ -28,8 +28,8 @@ + #include <ctype.h> + #include <string.h> + #include <fcntl.h> +-#if defined(__FreeBSD__) || defined(__APPLE__) + #include <limits.h> ++#if defined(__FreeBSD__) || defined(__APPLE__) + #include <sys/socket.h> + #include <netinet/in_systm.h> + #endif +@@ -40,10 +40,6 @@ + #include <netinet/udp.h> + #include <netinet/ip_icmp.h> + #include <net/if.h> +-#if !defined(__FreeBSD__) && !defined(__APPLE__) +-#include <bits/time.h> +-#include <linux/limits.h> +-#endif + #include <sys/types.h> + #include <sys/wait.h> + #include <sys/ioctl.h> |