med, or low priority. For now, H, M, or L can indicate alpha 1, 2, or 3.
Perf changes fall between alpha 1 and 2.
-==== Types
+=== Logging
+
+* Don't output messages for the coder. Output messages that make
+ sense to the user. The function name doesn't belong in the error
+ message.
+
+=== Types
* Use logical types to make the code clearer and to help the compiler catch
problems. typedef uint16_t Port; bool foo(Port) is way better than
* Use const liberally.
-==== Formatting
+=== Formatting
* Indent 4 space chars ... no tabs!
SetRotatePerfFileFlag();
}
-int wtf_start[8];
-int wtf_stop[8];
-
void snort_thread_init(const char* intf)
{
-++wtf_start[get_instance_id()];
// FIXIT-H the start-up sequence is a little off due to dropping privs
DAQ_New(snort_conf, intf);
DAQ_Start();
IpsManager::setup_options();
ActionManager::thread_init(snort_conf);
InspectorManager::thread_init(snort_conf);
-++wtf_start[get_instance_id()];
}
void snort_thread_term()
{
-++wtf_stop[get_instance_id()];
#ifdef PPM_MGR
ppm_sum_stats();
#endif
SnortEventqFree();
Active_Term();
PacketManager::thread_term();
-++wtf_stop[get_instance_id()];
}
{
Inspector::slot = get_instance_id();
- if ( wtf_init[get_instance_id()]++ )
- return;
-
InspectionPolicy* pi = get_inspection_policy();
if ( !pi || !pi->framework_policy )