"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/service_state.h" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.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.

service_state.h  (snort3-3.1.28.0):service_state.h  (snort3-3.1.29.0)
skipping to change at line 152 skipping to change at line 152
snort::SfIp last_invalid_client; snort::SfIp last_invalid_client;
time_t reset_time; time_t reset_time;
}; };
class AppIdServiceState class AppIdServiceState
{ {
public: public:
static bool initialize(size_t memcap); static bool initialize(size_t memcap);
static void clean(); static void clean();
static ServiceDiscoveryState* add(const snort::SfIp*, IpProtocol, uint16_t p ort, static ServiceDiscoveryState* add(const snort::SfIp*, IpProtocol, uint16_t p ort,
int16_t group, uint16_t asid, bool decrypted, bool do_touch = false); int16_t group, uint32_t asid, bool decrypted, bool do_touch = false);
static ServiceDiscoveryState* get(const snort::SfIp*, IpProtocol, uint16_t p ort, static ServiceDiscoveryState* get(const snort::SfIp*, IpProtocol, uint16_t p ort,
int16_t group, uint16_t asid, bool decrypted, bool do_touch = false); int16_t group, uint32_t asid, bool decrypted, bool do_touch = false);
static void remove(const snort::SfIp*, IpProtocol, uint16_t port, static void remove(const snort::SfIp*, IpProtocol, uint16_t port,
int16_t group, uint16_t asid, bool decrypted); int16_t group, uint32_t asid, bool decrypted);
static void check_reset(AppIdSession& asd, const snort::SfIp* ip, uint16_t p ort, static void check_reset(AppIdSession& asd, const snort::SfIp* ip, uint16_t p ort,
int16_t group, uint16_t asid); int16_t group, uint32_t asid);
static bool prune(size_t max_memory = 0, size_t num_items = -1u); static bool prune(size_t max_memory = 0, size_t num_items = -1u);
}; };
PADDING_GUARD_BEGIN PADDING_GUARD_BEGIN
struct AppIdServiceStateKey struct AppIdServiceStateKey
{ {
AppIdServiceStateKey(const snort::SfIp* ip, AppIdServiceStateKey(const snort::SfIp* ip,
IpProtocol proto, uint16_t port, int16_t group, uint16_t asid, bool decr IpProtocol proto, uint16_t port, int16_t group, uint32_t asid, bool decr
ypted) : ypted) :
ip(*ip), port(port), group(group), asid(asid), decrypted(decrypted), pro ip(*ip), port(port), asid(asid), group(group), decrypted(decrypted), pro
to(proto) to(proto)
{ } { }
bool operator<(const AppIdServiceStateKey& right) const bool operator<(const AppIdServiceStateKey& right) const
{ {
return memcmp((const uint8_t*) this, (const uint8_t*) &right, sizeof(*th is)) < 0; return memcmp((const uint8_t*) this, (const uint8_t*) &right, sizeof(*th is)) < 0;
} }
snort::SfIp ip; snort::SfIp ip;
uint16_t port; uint16_t port;
uint32_t asid;
int16_t group; int16_t group;
uint16_t asid;
bool decrypted; bool decrypted;
IpProtocol proto; IpProtocol proto;
}; };
PADDING_GUARD_END PADDING_GUARD_END
extern THREAD_LOCAL AppIdStats appid_stats; extern THREAD_LOCAL AppIdStats appid_stats;
class MapList class MapList
{ {
public: public:
 End of changes. 7 change blocks. 
9 lines changed or deleted 9 lines changed or added

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