appid_config.h (snort3-3.1.28.0) | : | appid_config.h (snort3-3.1.29.0) | ||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
#include "client_plugins/client_discovery.h" | #include "client_plugins/client_discovery.h" | |||
#include "client_plugins/eve_ca_patterns.h" | #include "client_plugins/eve_ca_patterns.h" | |||
#include "detector_plugins/dns_patterns.h" | #include "detector_plugins/dns_patterns.h" | |||
#include "detector_plugins/http_url_patterns.h" | #include "detector_plugins/http_url_patterns.h" | |||
#include "detector_plugins/sip_patterns.h" | #include "detector_plugins/sip_patterns.h" | |||
#include "detector_plugins/ssl_patterns.h" | #include "detector_plugins/ssl_patterns.h" | |||
#include "host_port_app_cache.h" | #include "host_port_app_cache.h" | |||
#include "length_app_cache.h" | #include "length_app_cache.h" | |||
#include "lua_detector_flow_api.h" | #include "lua_detector_flow_api.h" | |||
#include "lua_detector_module.h" | #include "lua_detector_module.h" | |||
#include "service_plugins/alpn_patterns.h" | ||||
#include "service_plugins/service_discovery.h" | #include "service_plugins/service_discovery.h" | |||
#include "detector_plugins/ssh_patterns.h" | #include "detector_plugins/ssh_patterns.h" | |||
#include "tp_appid_module_api.h" | #include "tp_appid_module_api.h" | |||
#include "utils/sflsq.h" | #include "utils/sflsq.h" | |||
#define APP_ID_PORT_ARRAY_SIZE 65536 | #define APP_ID_PORT_ARRAY_SIZE 65536 | |||
#define MIN_MAX_BYTES_BEFORE_SERVICE_FAIL 4096 | #define MIN_MAX_BYTES_BEFORE_SERVICE_FAIL 4096 | |||
#define MIN_MAX_PKTS_BEFORE_SERVICE_FAIL 5 | #define MIN_MAX_PKTS_BEFORE_SERVICE_FAIL 5 | |||
#define MIN_MAX_PKT_BEFORE_SERVICE_FAIL_IGNORE_BYTES 15 | #define MIN_MAX_PKT_BEFORE_SERVICE_FAIL_IGNORE_BYTES 15 | |||
skipping to change at line 212 | skipping to change at line 213 | |||
PatternClientDetector& get_client_pattern_detector() | PatternClientDetector& get_client_pattern_detector() | |||
{ | { | |||
return *client_pattern_detector; | return *client_pattern_detector; | |||
} | } | |||
PatternServiceDetector& get_service_pattern_detector() | PatternServiceDetector& get_service_pattern_detector() | |||
{ | { | |||
return *service_pattern_detector; | return *service_pattern_detector; | |||
} | } | |||
AlpnPatternMatchers& get_alpn_matchers() | ||||
{ | ||||
return alpn_matchers; | ||||
} | ||||
void add_port_service_id(IpProtocol, uint16_t, AppId); | void add_port_service_id(IpProtocol, uint16_t, AppId); | |||
void add_protocol_service_id(IpProtocol, AppId); | void add_protocol_service_id(IpProtocol, AppId); | |||
AppId get_port_service_id(IpProtocol, uint16_t); | AppId get_port_service_id(IpProtocol, uint16_t); | |||
AppId get_protocol_service_id(IpProtocol); | AppId get_protocol_service_id(IpProtocol); | |||
private: | private: | |||
AppInfoManager app_info_mgr; | AppInfoManager app_info_mgr; | |||
ClientDiscovery client_disco_mgr; | ClientDiscovery client_disco_mgr; | |||
HostPortCache host_port_cache; | HostPortCache host_port_cache; | |||
LengthCache length_cache; | LengthCache length_cache; | |||
DnsPatternMatchers dns_matchers; | DnsPatternMatchers dns_matchers; | |||
HttpPatternMatchers http_matchers; | HttpPatternMatchers http_matchers; | |||
EveCaPatternMatchers eve_ca_matchers; | EveCaPatternMatchers eve_ca_matchers; | |||
ServiceDiscovery service_disco_mgr; | ServiceDiscovery service_disco_mgr; | |||
SipPatternMatchers sip_matchers; | SipPatternMatchers sip_matchers; | |||
SslPatternMatchers ssl_matchers; | SslPatternMatchers ssl_matchers; | |||
SshPatternMatchers ssh_matchers; | SshPatternMatchers ssh_matchers; | |||
PatternClientDetector* client_pattern_detector; | PatternClientDetector* client_pattern_detector; | |||
PatternServiceDetector* service_pattern_detector; | PatternServiceDetector* service_pattern_detector; | |||
AlpnPatternMatchers alpn_matchers; | ||||
std::array<AppId, APP_ID_PORT_ARRAY_SIZE> tcp_port_only = {}; // port-only T CP services | std::array<AppId, APP_ID_PORT_ARRAY_SIZE> tcp_port_only = {}; // port-only T CP services | |||
std::array<AppId, APP_ID_PORT_ARRAY_SIZE> udp_port_only = {}; // port-only U DP services | std::array<AppId, APP_ID_PORT_ARRAY_SIZE> udp_port_only = {}; // port-only U DP services | |||
std::array<AppId, 256> ip_protocol = {}; // non-TCP / UDP protocol services | std::array<AppId, 256> ip_protocol = {}; // non-TCP / UDP protocol services | |||
uint32_t version; | uint32_t version; | |||
static uint32_t next_version; | static uint32_t next_version; | |||
}; | }; | |||
class OdpThreadContext | class OdpThreadContext | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added |