Merge in SNORT/snort3 from ~RUCOMBS/snort3:svc_proto to master
Squashed commit of the following:
commit
63858fa7c98027773703bf38a6df9015b62ab238
Author: Russ Combs <rucombs@cisco.com>
Date: Tue Oct 1 10:03:47 2024 -0400
ips: ignore proto when service supersedes ports
return 0;
}
-int CheckProto(Packet* p, RuleTreeNode* rtn_idx, RuleFpList*, int)
+int CheckProto(Packet* p, RuleTreeNode* rtn_idx, RuleFpList*, int check_ports)
{
+ if ( !check_ports )
+ return 1; // ignore proto when ignoring ports
+
assert(rtn_idx->snort_protocol_id < SNORT_PROTO_MAX);
const int proto_bits[SNORT_PROTO_MAX] = // SNORT_PROTO_ to PROTO_BIT__*