Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/net-mgmt/aircrack-ng/files/patch-src_osdep_radiotap_radiotap.c
16461 views
1
--- src/aircrack-osdep/radiotap/radiotap.c.orig
2
+++ src/aircrack-osdep/radiotap/radiotap.c
3
@@ -20,6 +20,16 @@
4
#endif
5
6
7
+#ifdef _BSD_SOURCE
8
+#if __BYTE_ORDER == __LITTLE_ENDIAN
9
+#define le16toh(x) (x)
10
+#define le32toh(x) (x)
11
+#else
12
+#define le32toh(x) bswap_32 (x)
13
+#endif
14
+#endif
15
+
16
+
17
/* function prototypes and related defs are in radiotap_iter.h */
18
19
static const struct radiotap_align_size rtap_namespace_sizes[] = {
20
21