summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Portnoy <avenj@gentoo.org>2003-12-03 21:30:31 +0000
committerJon Portnoy <avenj@gentoo.org>2003-12-03 21:30:31 +0000
commit2a44b157eaf118506c647020c07e842e1290b4b6 (patch)
treef154f032bb2c85dfee8e0e903206bbd838bd54cc /net-analyzer/hping/files
parentAdded a patch from GMsoft for WLAN devices (diff)
downloadgentoo-2-2a44b157eaf118506c647020c07e842e1290b4b6.tar.gz
gentoo-2-2a44b157eaf118506c647020c07e842e1290b4b6.tar.bz2
gentoo-2-2a44b157eaf118506c647020c07e842e1290b4b6.zip
Added a patch from GMsoft for WLAN devices
Diffstat (limited to 'net-analyzer/hping/files')
-rw-r--r--net-analyzer/hping/files/digest-hping-2.0.0_rc2-r11
-rw-r--r--net-analyzer/hping/files/wlan-header-fix.patch24
2 files changed, 25 insertions, 0 deletions
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