aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_ip.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-04-05 14:56:59 (GMT)
committerJouni Malinen <j@w1.fi>2020-04-05 15:53:59 (GMT)
commite13f836dde5f0dea64d36b7caafbd5de0a581c3f (patch)
tree86073cb3434f37c5b435e31e0c9537c6beeda014 /wlantest/rx_ip.c
parente9db8b59c98f289f9ac10201771d51063af64424 (diff)
downloadhostap-e13f836dde5f0dea64d36b7caafbd5de0a581c3f.zip
hostap-e13f836dde5f0dea64d36b7caafbd5de0a581c3f.tar.gz
hostap-e13f836dde5f0dea64d36b7caafbd5de0a581c3f.tar.bz2
wlantest: Comment out ICMP processing from OS X builds
For now, allow this to be compiled without ICMP support. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest/rx_ip.c')
-rw-r--r--wlantest/rx_ip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wlantest/rx_ip.c b/wlantest/rx_ip.c
index 0e833ec..fdf80b7 100644
--- a/wlantest/rx_ip.c
+++ b/wlantest/rx_ip.c
@@ -14,6 +14,8 @@
#include "wlantest.h"
+#ifndef __APPLE__
+
static void ping_update(struct wlantest *wt, struct wlantest_sta *sta, int req,
u32 src, u32 dst, u16 id, u16 seq)
{
@@ -95,6 +97,8 @@ static void rx_data_icmp(struct wlantest *wt, const u8 *bssid,
ping_update(wt, sta, hdr->type == ICMP_ECHO, src, dst, id, seq);
}
+#endif /* __APPLE__ */
+
static int hwsim_test_packet(const u8 *data, size_t len)
{
@@ -169,9 +173,11 @@ void rx_data_ip(struct wlantest *wt, const u8 *bssid, const u8 *sta_addr,
plen = len - 4 * ip->ip_hl;
switch (ip->ip_p) {
+#ifndef __APPLE__
case IPPROTO_ICMP:
rx_data_icmp(wt, bssid, sta_addr, ip->ip_dst.s_addr,
ip->ip_src.s_addr, payload, plen, peer_addr);
break;
+#endif /* __APPLE__ */
}
}