"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/managers/event_manager.h" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

event_manager.h  (snort3-3.1.29.0):event_manager.h  (snort3-3.1.30.0)
skipping to change at line 45 skipping to change at line 45
{ {
struct LogApi; struct LogApi;
struct Packet; struct Packet;
struct SnortConfig; struct SnortConfig;
} }
struct Event; struct Event;
struct OutputSet; struct OutputSet;
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
#ifdef PIGLET
struct LoggerWrapper
{
LoggerWrapper(const snort::LogApi* a, snort::Logger* p) :
api { a }, instance { p } { }
~LoggerWrapper()
{
if ( api && instance && api->dtor )
api->dtor(instance);
}
const snort::LogApi* api;
snort::Logger* instance;
};
#endif
class EventManager class EventManager
{ {
public: public:
static void add_plugin(const snort::LogApi*); static void add_plugin(const snort::LogApi*);
static void dump_plugins(); static void dump_plugins();
static void release_plugins(); static void release_plugins();
static void instantiate(const char*, snort::SnortConfig*); static void instantiate(const char*, snort::SnortConfig*);
static void instantiate(const snort::LogApi*, snort::Module*, snort::SnortCo nfig*); static void instantiate(const snort::LogApi*, snort::Module*, snort::SnortCo nfig*);
skipping to change at line 87 skipping to change at line 70
static void open_outputs(); static void open_outputs();
static void close_outputs(); static void close_outputs();
static void call_alerters(OutputSet*, snort::Packet*, const char* message, c onst Event&); static void call_alerters(OutputSet*, snort::Packet*, const char* message, c onst Event&);
static void call_loggers(OutputSet*, snort::Packet*, const char* message, Ev ent*); static void call_loggers(OutputSet*, snort::Packet*, const char* message, Ev ent*);
static void enable_alerts(bool b) { alert_enabled = b; } static void enable_alerts(bool b) { alert_enabled = b; }
static void enable_logs(bool b) { log_enabled = b; } static void enable_logs(bool b) { log_enabled = b; }
#ifdef PIGLET
static LoggerWrapper* instantiate(const char* name, snort::Module*, snort::S
nortConfig*);
#endif
private: private:
static void instantiate(struct Output*, snort::Module*, snort::SnortConfig*) ; static void instantiate(struct Output*, snort::Module*, snort::SnortConfig*) ;
static bool alert_enabled; static bool alert_enabled;
static bool log_enabled; static bool log_enabled;
}; };
#endif #endif
 End of changes. 2 change blocks. 
22 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)