From 2a44b157eaf118506c647020c07e842e1290b4b6 Mon Sep 17 00:00:00 2001 From: Jon Portnoy Date: Wed, 3 Dec 2003 21:30:31 +0000 Subject: Added a patch from GMsoft for WLAN devices --- net-analyzer/hping/files/digest-hping-2.0.0_rc2-r1 | 1 + net-analyzer/hping/files/wlan-header-fix.patch | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 net-analyzer/hping/files/digest-hping-2.0.0_rc2-r1 create mode 100644 net-analyzer/hping/files/wlan-header-fix.patch (limited to 'net-analyzer/hping/files') diff --git a/net-analyzer/hping/files/digest-hping-2.0.0_rc2-r1 b/net-analyzer/hping/files/digest-hping-2.0.0_rc2-r1 new file mode 100644 index 000000000000..30bfb232cf07 --- /dev/null +++ b/net-analyzer/hping/files/digest-hping-2.0.0_rc2-r1 @@ -0,0 +1 @@ +MD5 f9ab1f84ec89f2a1c428988231d554b0 hping2.0.0-rc2.tar.gz 100501 diff --git a/net-analyzer/hping/files/wlan-header-fix.patch b/net-analyzer/hping/files/wlan-header-fix.patch new file mode 100644 index 000000000000..0e22e42e0a93 --- /dev/null +++ b/net-analyzer/hping/files/wlan-header-fix.patch @@ -0,0 +1,24 @@ +diff -uNr hping2-rc2.orig/getlhs.c hping2-rc2/getlhs.c +--- hping2-rc2.orig/getlhs.c 2003-11-27 00:10:32.000000000 +0100 ++++ hping2-rc2/getlhs.c 2003-11-27 00:11:37.000000000 +0100 +@@ -88,6 +88,9 @@ + } else if ( strstr(ifname, "eth") ) { + linkhdr_size = ETHHDR_SIZE; + return 0; ++ } else if ( strstr(ifname, "wlan") ) { ++ linkhdr_size = WLANHDR_SIZE; ++ return 0; + } else if (strstr(ifname, "ets")) { + linkhdr_size = 0; + return 0; +diff -uNr hping2-rc2.orig/hping2.h hping2-rc2/hping2.h +--- hping2-rc2.orig/hping2.h 2003-11-27 00:10:32.000000000 +0100 ++++ hping2-rc2/hping2.h 2003-11-27 00:11:44.000000000 +0100 +@@ -97,6 +97,7 @@ + #define PPPHDR_SIZE_NETBSD 4 + #define ETHHDR_SIZE 14 + #define LOHDR_SIZE 14 ++#define WLANHDR_SIZE 14 + + /* packet size (physical header size + ip header + tcp header + 0 data bytes) */ + #ifndef IP_MAX_SIZE -- cgit v1.2.3-65-gdbad