"Fossies" - the Fresh Open Source Software Archive  

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

script_manager.cc  (snort3-3.1.29.0):script_manager.cc  (snort3-3.1.30.0)
skipping to change at line 36 skipping to change at line 36
#include <sys/stat.h> #include <sys/stat.h>
#include "framework/ips_option.h" #include "framework/ips_option.h"
#include "framework/logger.h" #include "framework/logger.h"
#include "framework/lua_api.h" #include "framework/lua_api.h"
#include "helpers/directory.h" #include "helpers/directory.h"
#include "log/messages.h" #include "log/messages.h"
#include "lua/lua.h" #include "lua/lua.h"
#include "lua/lua_script.h" #include "lua/lua_script.h"
#ifdef PIGLET
#include "piglet/piglet_manager.h"
#endif
using namespace snort; using namespace snort;
using namespace std; using namespace std;
// FIXIT-P this approach results in N * K lua states where // FIXIT-P this approach results in N * K lua states where
// N ::= number of instances of script + args and // N ::= number of instances of script + args and
// K ::= number of threads // K ::= number of threads
// change to create K lua states here for each script + args // change to create K lua states here for each script + args
// and change LuaJit*() to get reference to thread states // and change LuaJit*() to get reference to thread states
// ultimately should look into changing detection engine to // ultimately should look into changing detection engine to
// keep just one copy of rule option + args // keep just one copy of rule option + args
skipping to change at line 228 skipping to change at line 224
ParseError("%s::%s can't save chunk", f, name.c_str()); ParseError("%s::%s can't save chunk", f, name.c_str());
return; return;
} }
if ( type == IpsLuaApi::type ) if ( type == IpsLuaApi::type )
lua_api.emplace_back(new IpsLuaApi(name, chunk, ver)); lua_api.emplace_back(new IpsLuaApi(name, chunk, ver));
else if ( type == LogLuaApi::type ) else if ( type == LogLuaApi::type )
lua_api.emplace_back(new LogLuaApi(name, chunk, ver)); lua_api.emplace_back(new LogLuaApi(name, chunk, ver));
#ifdef PIGLET
else if ( type == "piglet" )
Piglet::Manager::add_chunk(f, name, chunk);
#endif
else else
{ {
ParseError("unknown plugin type in %s = '%s'", f, type.c_str()); ParseError("unknown plugin type in %s = '%s'", f, type.c_str());
return; return;
} }
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// public methods // public methods
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
 End of changes. 2 change blocks. 
9 lines changed or deleted 0 lines changed or added

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