"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/managers/ips_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.

ips_manager.cc  (snort3-3.1.29.0):ips_manager.cc  (snort3-3.1.30.0)
skipping to change at line 376 skipping to change at line 376
} }
bool IpsManager::verify(SnortConfig* sc) bool IpsManager::verify(SnortConfig* sc)
{ {
for ( auto& p : s_options ) for ( auto& p : s_options )
if ( p.second->init && p.second->api->verify ) if ( p.second->init && p.second->api->verify )
p.second->api->verify(sc); p.second->api->verify(sc);
return true; return true;
} }
#ifdef PIGLET
static const IpsApi* find_api(const char* name)
{
for ( auto& wrap : s_options )
if ( !strcmp(wrap.second->api->base.name, name) )
return wrap.second->api;
return nullptr;
}
IpsOptionWrapper* IpsManager::instantiate(const char* name, Module* m, struct Op
tTreeNode* otn)
{
auto api = find_api(name);
if ( !api || !api->ctor )
return nullptr;
auto p = api->ctor(m, otn);
if ( !p )
return nullptr;
return new IpsOptionWrapper(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)