]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Use local ETH_P_IP define instead of linux/if_ether.h
authorJouni Malinen <j@w1.fi>
Sat, 26 Mar 2016 09:35:30 +0000 (11:35 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 26 Mar 2016 09:35:30 +0000 (11:35 +0200)
There is no strong need for pulling in linux/if_ether.h here since all
that is needed if ETH_P_IP and we already cover multiple other ETH_P_*
values in utils/common.h.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/common.h
wlantest/rx_data.c

index 0b9cc3d882090f1f476405e7554c19779cc38fbb..6f0de699dd86a4c1a3c78656d78e64e22b28fe1b 100644 (file)
@@ -313,6 +313,9 @@ static inline void WPA_PUT_LE64(u8 *a, u64 val)
 #ifndef ETH_P_ALL
 #define ETH_P_ALL 0x0003
 #endif
+#ifndef ETH_P_IP
+#define ETH_P_IP 0x0800
+#endif
 #ifndef ETH_P_80211_ENCAP
 #define ETH_P_80211_ENCAP 0x890d /* TDLS comes under this category */
 #endif
index 4c55e7d49ad262c991dfd8de6c5c0870923696b4..b53542fac4baff7a4ebe038c5b45716480406b67 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #include "utils/includes.h"
-#include <linux/if_ether.h>
 
 #include "utils/common.h"
 #include "common/defs.h"