diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-05-19 21:18:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-19 21:18:18 +0200 |
commit | fd89c81b83ac215ba838b66c57f5a6beee2dec6a (patch) | |
tree | 5621c3ee2b741db74846383d09ff35459c41e6a5 /windows/src | |
parent | 31a8d4307e11e0ccd6ca11b03f7812183514751e (diff) |
Flow: keep track of "dissectors" (#2828)
In the flow, we should keep track of state of "dissectors", not
"protocols". This way, flow structure doesn't depend anymore on
the max number of protocols.
This is also the first step into fixing #2136
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... */ |