"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/appid_config.cc" 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.

appid_config.cc  (snort3-3.1.28.0):appid_config.cc  (snort3-3.1.29.0)
skipping to change at line 171 skipping to change at line 171
} }
void OdpContext::initialize(AppIdInspector& inspector) void OdpContext::initialize(AppIdInspector& inspector)
{ {
service_pattern_detector->finalize_service_port_patterns(inspector); service_pattern_detector->finalize_service_port_patterns(inspector);
client_pattern_detector->finalize_client_port_patterns(inspector); client_pattern_detector->finalize_client_port_patterns(inspector);
service_disco_mgr.finalize_service_patterns(); service_disco_mgr.finalize_service_patterns();
client_disco_mgr.finalize_client_patterns(); client_disco_mgr.finalize_client_patterns();
http_matchers.finalize_patterns(); http_matchers.finalize_patterns();
eve_ca_matchers.finalize_patterns(); eve_ca_matchers.finalize_patterns();
alpn_matchers.finalize_patterns();
// sip patterns need to be finalized after http patterns because they // sip patterns need to be finalized after http patterns because they
// are dependent on http patterns // are dependent on http patterns
sip_matchers.finalize_patterns(*this); sip_matchers.finalize_patterns(*this);
ssl_matchers.finalize_patterns(); ssl_matchers.finalize_patterns();
dns_matchers.finalize_patterns(); dns_matchers.finalize_patterns();
} }
void OdpContext::reload() void OdpContext::reload()
{ {
assert(service_pattern_detector); assert(service_pattern_detector);
service_pattern_detector->reload_service_port_patterns(); service_pattern_detector->reload_service_port_patterns();
assert(client_pattern_detector); assert(client_pattern_detector);
client_pattern_detector->reload_client_port_patterns(); client_pattern_detector->reload_client_port_patterns();
service_disco_mgr.reload_service_patterns(); service_disco_mgr.reload_service_patterns();
client_disco_mgr.reload_client_patterns(); client_disco_mgr.reload_client_patterns();
eve_ca_matchers.reload_patterns(); eve_ca_matchers.reload_patterns();
http_matchers.reload_patterns(); http_matchers.reload_patterns();
sip_matchers.reload_patterns(); sip_matchers.reload_patterns();
ssl_matchers.reload_patterns(); ssl_matchers.reload_patterns();
dns_matchers.reload_patterns(); dns_matchers.reload_patterns();
alpn_matchers.reload_patterns();
} }
void OdpContext::add_port_service_id(IpProtocol proto, uint16_t port, AppId appi d) void OdpContext::add_port_service_id(IpProtocol proto, uint16_t port, AppId appi d)
{ {
if (proto == IpProtocol::TCP) if (proto == IpProtocol::TCP)
tcp_port_only[port] = appid; tcp_port_only[port] = appid;
else if (proto == IpProtocol::UDP) else if (proto == IpProtocol::UDP)
udp_port_only[port] = appid; udp_port_only[port] = appid;
else else
ErrorMessage("appid: invalid port service for proto %d port %d app %d\n" , ErrorMessage("appid: invalid port service for proto %d port %d app %d\n" ,
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

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