diff options
Diffstat (limited to 'windows/src')
-rw-r--r-- | windows/src/ndpi_define.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/windows/src/ndpi_define.h b/windows/src/ndpi_define.h index dc002a5a7..b965f6282 100644 --- a/windows/src/ndpi_define.h +++ b/windows/src/ndpi_define.h @@ -138,6 +138,10 @@ #define NDPI_ISSET_BIT(num, n) (num & (1ULL << ( n ))) #define NDPI_ZERO_BIT(num) num = 0 +#define NDPI_DISSECTOR_BITMASK ndpi_dissector_bitmask_struct_t +#define NDPI_DISSECTOR_BITMASK_IS_SET(p, n) NDPI_ISSET(&(p), (n)) +#define NDPI_DISSECTOR_BITMASK_SET(p, n) NDPI_SET(&(p), (n) & NDPI_NUM_BITS_MASK) + /* this is a very very tricky macro *g*, * the compiler will remove all shifts here if the protocol is static... */ |