AC_DEFINE(LINUX_SMP, [1], [enable proc stats])
fi
-AC_ARG_ENABLE(inline-init-failopen,
-[ --enable-inline-init-failopen Enable Fail Open during initialization for Inline Mode (adds pthread support implicitly)],
- enable_inline_init_failopen="$enableval", enable_inline_init_failopen="no")
-
-if test "x$enable_inline_init_failopen" = "xyes"; then
- AC_DEFINE(INLINE_FAILOPEN, [1], [pass packet during initialization])
- LIBS="$LIBS -lpthread"
-fi
-
-AC_ARG_ENABLE(pthread,
-[ --disable-pthread Disable pthread support],
- enable_pthread="$enableval", enable_pthread="yes")
-
-if test "x$enable_pthread" = "xyes"; then
- LIBS="$LIBS -lpthread"
-fi
-
AC_ARG_ENABLE(debug-msgs,
[ --enable-debug-msgs Enable debug printing options (bugreports and developers only)],
enable_debug_msgs="$enableval", enable_debug_msgs="no")
AC_DEFINE(NOCOREFILE, [1], [do not generate a core file on segfault etc.])
fi
-LIBS="$LIBS -lpthread"
-
AC_ARG_ENABLE(non-ether-decoders,
[ --enable-non-ether-decoders Enable non Ethernet decoders.],
enable_non_ether_decoders="$enableval", enable_non_ether_decoders="no")
* configure --with-lib{pcap,pcre}-* -> --with-{pcap,pcre}-*
* control socket, cs_dir, and users were deleted
* POLICY_BY_ID_ONLY code was deleted
+* hardened --enable-inline-init-failopen / INLINE_FAILOPEN
=== Command Line
{ "bpf_file", Parameter::PT_STRING, nullptr, nullptr,
"file with BPF to select traffic for Snort" },
-#ifdef INLINE_FAILOPEN
{ "enable_inline_init_failopen", Parameter::PT_BOOL, nullptr, "true",
"whether to pass traffic during later stage of initialization to avoid drops" },
-#endif
{ "limit", Parameter::PT_INT, "0:", "0",
"maximum number of packets to process before stopping (0 is unlimited)" },
else if ( v.is("bpf_file") )
sc->bpf_file = SnortStrdup(v.get_string());
-#ifdef INLINE_FAILOPEN
else if ( v.is("enable_inline_init_failopen") )
{
if ( !v.get_bool() )
sc->run_flags |= RUN_FLAG__DISABLE_FAILOPEN;
}
-#endif
else if ( v.is("limit") )
sc->pkt_cnt = v.get_long();
RUN_FLAG__PROCESS_ALL_EVENTS = 0x00002000,
RUN_FLAG__INLINE_TEST = 0x00004000, /* --enable-inline-test*/
-#ifdef INLINE_FAILOPEN
RUN_FLAG__DISABLE_FAILOPEN = 0x00100000, /* --disable-inline-init-failopen */
-#endif
RUN_FLAG__PCAP_RESET = 0x00200000,
RUN_FLAG__PCAP_SHOW = 0x00400000,
RUN_FLAG__PAUSE = 0x00800000, // --pause
return snort_conf->default_rule_state;
}
-#ifdef INLINE_FAILOPEN
static inline int ScDisableInlineFailopen(void)
{
return snort_conf->run_flags & RUN_FLAG__DISABLE_FAILOPEN;
}
-#endif
static inline int ScNoLockPidFile(void)
{