"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ips_options/ips_luajit.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_luajit.cc  (snort3-3.1.29.0):ips_luajit.cc  (snort3-3.1.30.0)
skipping to change at line 99 skipping to change at line 99
}; };
bool LuaJitModule::begin(const char*, int, SnortConfig*) bool LuaJitModule::begin(const char*, int, SnortConfig*)
{ {
args.clear(); args.clear();
return true; return true;
} }
bool LuaJitModule::set(const char*, Value& v, SnortConfig*) bool LuaJitModule::set(const char*, Value& v, SnortConfig*)
{ {
args = v.get_string();
// if args not empty, it has to be a quoted string // if args not empty, it has to be a quoted string
// so remove enclosing quotes // so remove enclosing quotes
if ( args.size() > 1 ) args = v.get_unquoted_string();
{
args.erase(0, 1);
args.erase(args.size()-1);
}
return true; return true;
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// option stuff // option stuff
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
class LuaJitOption : public IpsOption class LuaJitOption : public IpsOption
{ {
public: public:
 End of changes. 2 change blocks. 
8 lines changed or deleted 1 lines changed or added

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