aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/monitor.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-04-05 14:57:32 (GMT)
committerJouni Malinen <j@w1.fi>2020-04-05 15:53:59 (GMT)
commitc25dc978a6dbb0eb7ce2923d4912205701a44d87 (patch)
tree1b5aeba481f7b8ea356f64f26b0a01892dbe2139 /wlantest/monitor.c
parente13f836dde5f0dea64d36b7caafbd5de0a581c3f (diff)
downloadhostap-c25dc978a6dbb0eb7ce2923d4912205701a44d87.zip
hostap-c25dc978a6dbb0eb7ce2923d4912205701a44d87.tar.gz
hostap-c25dc978a6dbb0eb7ce2923d4912205701a44d87.tar.bz2
wlantest: Comment out Linux packet socket from OS X build
For now, allow wlantest to be built on OS X without support for live sniffer capturing. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest/monitor.c')
-rw-r--r--wlantest/monitor.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/wlantest/monitor.c b/wlantest/monitor.c
index afcc380..f287086 100644
--- a/wlantest/monitor.c
+++ b/wlantest/monitor.c
@@ -7,14 +7,36 @@
*/
#include "utils/includes.h"
+#ifndef __APPLE__
#include <net/if.h>
#include <netpacket/packet.h>
+#endif /* __APPLE__ */
#include "utils/common.h"
#include "utils/eloop.h"
#include "wlantest.h"
+#ifdef __APPLE__
+
+int monitor_init(struct wlantest *wt, const char *ifname)
+{
+ return -1;
+}
+
+
+int monitor_init_wired(struct wlantest *wt, const char *ifname)
+{
+ return -1;
+}
+
+
+void monitor_deinit(struct wlantest *wt)
+{
+}
+
+#else /* __APPLE__ */
+
static void monitor_read(int sock, void *eloop_ctx, void *sock_ctx)
{
struct wlantest *wt = eloop_ctx;
@@ -146,3 +168,5 @@ void monitor_deinit(struct wlantest *wt)
wt->monitor_wired = -1;
}
}
+
+#endif /* __APPLE__ */