Increased number of protocols to 512

Implemented WhatsApp file exchage support (added test pcap)
This commit is contained in:
Luca Deri
2018-03-01 20:52:06 +01:00
parent e935ee77bf
commit d4a20ba6a8
9 changed files with 123 additions and 28 deletions
+1 -1
View File
@@ -252,7 +252,7 @@
#define NDPI_COMPARE_IPV6_ADDRESS_STRUCTS(x,y) \
((((u_int64_t *)(x))[0]) < (((u_int64_t *)(y))[0]) || ( (((u_int64_t *)(x))[0]) == (((u_int64_t *)(y))[0]) && (((u_int64_t *)(x))[1]) < (((u_int64_t *)(y))[1])) )
#define NDPI_NUM_BITS 256
#define NDPI_NUM_BITS 512
#define NDPI_BITS /* 32 */ (sizeof(ndpi_ndpi_mask) * 8 /* number of bits in a byte */) /* bits per mask */
#define howmanybits(x, y) (((x)+((y)-1))/(y))