"Fossies" - the Fresh Open Source Software Archive  

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

inspector_manager.cc  (snort3-3.1.29.0):inspector_manager.cc  (snort3-3.1.30.0)
skipping to change at line 1679 skipping to change at line 1679
} }
} }
if ( ppi ) if ( ppi )
ppi->set_name(keyword); ppi->set_name(keyword);
else else
ParseError("can't instantiate inspector: '%s'.", keyword); ParseError("can't instantiate inspector: '%s'.", keyword);
} }
} }
#ifdef PIGLET
// FIXIT-M duplicates logic in void InspectorManager::instantiate()
Inspector* InspectorManager::instantiate(
const char* name, Module* mod, SnortConfig* sc)
{
auto ppc = get_class(name, sc->framework_config);
if ( !ppc )
return nullptr;
InspectionPolicy* ip = get_inspection_policy();
assert(ip);
auto fp = ip->framework_policy;
auto ppi = get_new(ppc, fp, name, mod, sc);
if ( !ppi )
return nullptr;
ppi->set_name(name);
// FIXIT-L can't we just unify PHInstance and InspectorWrapper?
return ppi->handler;
}
#endif
// create default binding for wizard and configured services // create default binding for wizard and configured services
static void instantiate_default_binder(SnortConfig* sc, FrameworkPolicy* fp) static void instantiate_default_binder(SnortConfig* sc, FrameworkPolicy* fp)
{ {
BinderModule* m = (BinderModule*)ModuleManager::get_module(bind_id); BinderModule* m = (BinderModule*)ModuleManager::get_module(bind_id);
bool tcp = false, udp = false, pdu = false; bool tcp = false, udp = false, pdu = false;
for ( unsigned i = 0; i < fp->service.num; i++ ) for ( unsigned i = 0; i < fp->service.num; i++ )
{ {
const InspectApi& api = fp->service.vec[i]->pp_class.api; const InspectApi& api = fp->service.vec[i]->pp_class.api;
 End of changes. 1 change blocks. 
27 lines changed or deleted 0 lines changed or added

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