aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_define.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ndpi_define.h.in')
-rw-r--r--src/include/ndpi_define.h.in13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in
index f173e6ce7..77e961550 100644
--- a/src/include/ndpi_define.h.in
+++ b/src/include/ndpi_define.h.in
@@ -187,7 +187,7 @@
(*(mod->ndpi_debug_printf))(proto, mod, log_level, __FILE__, __FUNCTION__, __LINE__, args); \
}
- /* We must define NDPI_CURRENT_PROTO before include ndpi_main.h !!!
+ /* We must define NDPI_CURRENT_PROTO before include ndpi_main.h !!!
*
* #include "ndpi_protocol_ids.h"
* #define NDPI_CURRENT_PROTO NDPI_PROTOCOL_XXXX
@@ -274,11 +274,10 @@
#define NDPI_BITMASK_SET_ALL(a) NDPI_ONE(&a)
#define NDPI_BITMASK_SET(a, b) { memcpy(&a, &b, sizeof(NDPI_PROTOCOL_BITMASK)); }
-#define NDPI_SET_BIT_16(num, n) num |= 1UL << n
-#define NDPI_CLR_BIT_16(num, n) num &= ~(1UL << n)
-#define NDPI_CLR_BIT_16(num, n) num &= ~(1UL << n)
-#define NDPI_ZERO_16(num) num = 0
-#define NDPI_ISSET_BIT_16(num, n) (num & (1 << n))
+#define NDPI_SET_BIT(num, n) num |= 1UL << n
+#define NDPI_CLR_BIT(num, n) num &= ~(1UL << n)
+#define NDPI_CLR_BIT(num, n) num &= ~(1UL << n)
+#define NDPI_ISSET_BIT(num, n) (num & (1 << n))
/* this is a very very tricky macro *g*,
* the compiler will remove all shifts here if the protocol is static...
@@ -334,7 +333,7 @@
#define match_first_bytes(payload,st) (memcmp((payload),(st),(sizeof(st)-1))==0)
#if defined(WIN32) && !defined(snprintf)
-#define snprintf _snprintf
+#define snprintf _snprintf
#endif
#define NDPI_MAX_DNS_REQUESTS 16