"Fossies" - the Fresh Open Source Software Archive  

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

codec_manager.cc  (snort3-3.1.29.0):codec_manager.cc  (snort3-3.1.30.0)
skipping to change at line 249 skipping to change at line 249
} }
} }
void CodecManager::dump_plugins() void CodecManager::dump_plugins()
{ {
Dumper d("Codecs"); Dumper d("Codecs");
for ( CodecApiWrapper& wrap : s_codecs ) for ( CodecApiWrapper& wrap : s_codecs )
d.dump(wrap.api->base.name, wrap.api->base.version); d.dump(wrap.api->base.name, wrap.api->base.version);
} }
#ifdef PIGLET
const CodecApi* CodecManager::find_api(const char* name)
{
for ( auto wrap : CodecManager::s_codecs )
if ( !strcmp(wrap.api->base.name, name) )
return wrap.api;
return nullptr;
}
CodecWrapper* CodecManager::instantiate(const char* name, Module* m, SnortConfig
*)
{
auto api = find_api(name);
if ( !api )
return nullptr;
auto p = api->ctor(m);
if ( !p )
return nullptr;
return new CodecWrapper(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)