aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/tcpdump/patches/004-fix_3g_iface.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-02-05 09:54:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-02-05 09:54:38 +0000
commit8c737e1864bb4a40dadc51f44bd7734102a2dd7c (patch)
tree299bed1c69d71e6cc2cd8ce06aaaf49ff24ae5fd /package/network/utils/tcpdump/patches/004-fix_3g_iface.patch
parente600fc0d2342e5f0ad4a5858821ff4910ac8edcb (diff)
downloadupstream-8c737e1864bb4a40dadc51f44bd7734102a2dd7c.tar.gz
upstream-8c737e1864bb4a40dadc51f44bd7734102a2dd7c.tar.bz2
upstream-8c737e1864bb4a40dadc51f44bd7734102a2dd7c.zip
tcpdump: update to current upstream version 4.5.1
-size_of(old tcpdump-mini 4.2.1) = 145245 Byte -size_of(new tcpdump-mini 4.5.1) = 149416 Byte => ~4.2 KByte increase Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de> SVN-Revision: 39474
Diffstat (limited to 'package/network/utils/tcpdump/patches/004-fix_3g_iface.patch')
-rw-r--r--package/network/utils/tcpdump/patches/004-fix_3g_iface.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/package/network/utils/tcpdump/patches/004-fix_3g_iface.patch b/package/network/utils/tcpdump/patches/004-fix_3g_iface.patch
deleted file mode 100644
index 35d105fa51..0000000000
--- a/package/network/utils/tcpdump/patches/004-fix_3g_iface.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/tcpdump.c
-+++ b/tcpdump.c
-@@ -66,6 +66,7 @@ extern int SIZE_BUF;
- #include <stdlib.h>
- #include <string.h>
- #include <limits.h>
-+#include <ctype.h>
- #ifndef WIN32
- #include <sys/wait.h>
- #include <sys/resource.h>
-@@ -625,6 +626,7 @@ main(int argc, char **argv)
- #ifdef HAVE_PCAP_FINDALLDEVS
- pcap_if_t *devpointer;
- int devnum;
-+ char *devp;
- #endif
- int status;
- #ifdef WIN32
-@@ -775,7 +777,8 @@ main(int argc, char **argv)
- * It can be useful on Windows, where more than
- * one interface can have the same name.
- */
-- if ((devnum = atoi(optarg)) != 0) {
-+ for (devp = optarg; *devp && isdigit(*devp); devp++);
-+ if ((!*devp || isspace(*devp)) && (devnum = atoi(optarg)) != 0) {
- if (devnum < 0)
- error("Invalid adapter index");
-