"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/managers/ips_manager.h" 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.h  (snort3-3.1.29.0):ips_manager.h  (snort3-3.1.30.0)
skipping to change at line 39 skipping to change at line 39
namespace snort namespace snort
{ {
struct IpsApi; struct IpsApi;
class IpsOption; class IpsOption;
struct SnortConfig; struct SnortConfig;
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
#ifdef PIGLET
struct IpsOptionWrapper
{
IpsOptionWrapper(const snort::IpsApi* a, snort::IpsOption* p) :
api { a }, instance { p } { }
~IpsOptionWrapper()
{
if ( api && instance && api->dtor )
api->dtor(instance);
}
const snort::IpsApi* api;
snort::IpsOption* instance;
};
#endif
class IpsManager class IpsManager
{ {
public: public:
static void add_plugin(const snort::IpsApi*); static void add_plugin(const snort::IpsApi*);
static void dump_plugins(); static void dump_plugins();
static void release_plugins(); static void release_plugins();
static void instantiate(const snort::IpsApi*, snort::Module*, snort::SnortCo nfig*); static void instantiate(const snort::IpsApi*, snort::Module*, snort::SnortCo nfig*);
static bool option_begin(snort::SnortConfig*, const char* key, SnortProtocol Id); static bool option_begin(snort::SnortConfig*, const char* key, SnortProtocol Id);
static bool option_set( static bool option_set(
skipping to change at line 83 skipping to change at line 66
SO_PUBLIC static const snort::IpsApi* get_option_api(const char* keyword); SO_PUBLIC static const snort::IpsApi* get_option_api(const char* keyword);
static void global_init(const snort::SnortConfig*); static void global_init(const snort::SnortConfig*);
static void global_term(const snort::SnortConfig*); static void global_term(const snort::SnortConfig*);
static void reset_options(); static void reset_options();
static void setup_options(const snort::SnortConfig*); static void setup_options(const snort::SnortConfig*);
static void clear_options(const snort::SnortConfig*); static void clear_options(const snort::SnortConfig*);
static bool verify(snort::SnortConfig*); static bool verify(snort::SnortConfig*);
#ifdef PIGLET
static IpsOptionWrapper* instantiate(const char*, snort::Module*, struct Opt
TreeNode*);
#endif
}; };
#endif #endif
 End of changes. 2 change blocks. 
22 lines changed or deleted 0 lines changed or added

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