Merge pull request #598 from madpilot78/include_hyperscan_fix

Move the configure include file inclusion and code depending on it in…
This commit is contained in:
Luca Deri
2018-08-30 11:28:41 +02:00
committed by GitHub
2 changed files with 16 additions and 11 deletions
+16
View File
@@ -854,6 +854,22 @@ typedef struct ndpi_proto {
#ifdef NDPI_LIB_COMPILATION
/* Needed to have access to HAVE_* defines */
#include "ndpi_config.h"
#ifdef HAVE_HYPERSCAN
struct hs_list {
char *expression;
unsigned int id;
struct hs_list *next;
};
struct hs {
hs_database_t *database;
hs_scratch_t *scratch;
};
#endif
struct ndpi_detection_module_struct {
NDPI_PROTOCOL_BITMASK detection_bitmask;
NDPI_PROTOCOL_BITMASK generic_http_packet_bitmask;
-11
View File
@@ -49,17 +49,6 @@
#ifdef HAVE_HYPERSCAN
#include <hs/hs.h>
struct hs_list {
char *expression;
unsigned int id;
struct hs_list *next;
};
struct hs {
hs_database_t *database;
hs_scratch_t *scratch;
};
#endif
#define NDPI_CONST_GENERIC_PROTOCOL_NAME "GenericProtocol"