"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/managers/event_manager.cc" 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.cc  (snort3-3.1.29.0):event_manager.cc  (snort3-3.1.30.0)
skipping to change at line 258 skipping to change at line 258
{ {
if ( idx ) if ( idx )
{ {
for ( auto p : idx->outputs ) for ( auto p : idx->outputs )
p->log(pkt, message, event); p->log(pkt, message, event);
return; return;
} }
for ( auto p : s_loggers.outputs ) for ( auto p : s_loggers.outputs )
p->log(pkt, message, event); p->log(pkt, message, event);
} }
#ifdef PIGLET
//-------------------------------------------------------------------------
// piglet breach
//-------------------------------------------------------------------------
static const LogApi* find_api(const char* name)
{
for ( auto out : s_outputs )
if ( !strcmp(out->api->base.name, name) )
return out->api;
return nullptr;
}
LoggerWrapper* EventManager::instantiate(const char* name, Module* m, SnortConfi
g*)
{
auto api = find_api(name);
if ( !api || !api->ctor )
return nullptr;
auto p = api->ctor(m);
if ( !p )
return nullptr;
return new LoggerWrapper(api, p);
}
#endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

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