Squashed commit of the following:
commit
a1cbb6c73750dd9b9f3225fae17d4c34018a1fdf
Author: Devendra Dahiphale <ddahipha@cisco.com>
Date: Fri Dec 14 18:31:19 2018 -0500
snort_config: Add a setter for setting run_flags and set it to TRACK_ON_SYN for hs_timeout config
bool track_on_syn() const
{ return (run_flags & RUN_FLAG__TRACK_ON_SYN) != 0; }
+ void set_run_flags(RunFlag flag)
+ { run_flags |= flag; }
+
// This requests an entry in the scratch space vector and calls setup /
// cleanup as appropriate
SO_PUBLIC static int request_scratch(ScScratchFunc setup, ScScratchFunc cleanup);
bool StreamTcpModule::end(const char*, int, SnortConfig* sc)
{
if ( config->hs_timeout >= 0 )
- sc->run_flags |= RUN_FLAG__TRACK_ON_SYN;
+ sc->set_run_flags(RUN_FLAG__TRACK_ON_SYN);
return true;
}