summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/hping/files/wlan-header-fix.patch')
-rw-r--r--net-analyzer/hping/files/wlan-header-fix.patch24
1 files changed, 24 insertions, 0 deletions
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