Added check for binary scripts
Added NDPI_HTTP_NUMERIC_IP_HOST risk ndpi_risk moved to 32 bit
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user