aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest.h
diff options
context:
space:
mode:
Diffstat (limited to 'wlantest/wlantest.h')
-rw-r--r--wlantest/wlantest.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/wlantest/wlantest.h b/wlantest/wlantest.h
new file mode 100644
index 0000000..2af12f1
--- /dev/null
+++ b/wlantest/wlantest.h
@@ -0,0 +1,33 @@
+/*
+ * wlantest - IEEE 802.11 protocol monitoring and testing tool
+ * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef WLANTEST_H
+#define WLANTEST_H
+
+struct wlantest {
+ int monitor_sock;
+
+ unsigned int rx_mgmt;
+ unsigned int rx_ctrl;
+ unsigned int rx_data;
+ unsigned int fcs_error;
+};
+
+int read_cap_file(struct wlantest *wt, const char *fname);
+void wlantest_process(struct wlantest *wt, const u8 *data, size_t len);
+u32 crc32(const u8 *frame, size_t frame_len);
+int monitor_init(struct wlantest *wt, const char *ifname);
+void monitor_deinit(struct wlantest *wt);
+
+#endif /* WLANTEST_H */