* comparing flows */
uint16_t g_vlan_mask = 0xffff;
+/* flag to disable hashing almost globally, to be similar to disabling nss
+ * support */
+bool g_disable_hashing = false;
+
/** Suricata instance */
SCInstance suricata;
{"pidfile", required_argument, 0, 0},
{"init-errors-fatal", 0, 0, 0},
{"disable-detection", 0, 0, 0},
+ {"disable-hashing", 0, 0, 0},
{"fatal-unittests", 0, 0, 0},
{"unittests-coverage", 0, &coverage_unittests, 1},
{"user", required_argument, 0, 0},
}
else if(strcmp((long_opts[option_index]).name, "disable-detection") == 0) {
g_detect_disabled = suri->disabled_detect = 1;
- }
- else if(strcmp((long_opts[option_index]).name, "fatal-unittests") == 0) {
+ } else if (strcmp((long_opts[option_index]).name, "disable-hashing") == 0) {
+ g_disable_hashing = true;
+ } else if (strcmp((long_opts[option_index]).name, "fatal-unittests") == 0) {
#ifdef UNITTESTS
unittests_fatal = 1;
#else
extern int g_disable_randomness;
extern uint16_t g_vlan_mask;
+/* Flag to disable hashing (almost) globally. */
+extern bool g_disable_hashing;
+
#include <ctype.h>
#define u8_tolower(c) tolower((uint8_t)(c))
#define u8_toupper(c) toupper((uint8_t)(c))