mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Order rule traversal in RuleMatcher::Match() operations by Rule index
This ordering fixes a test failure we're seeing on Alpine for the
signatures/tcp-end-of-match btest, since discrepancies in rule match traversal
could lead to discrepancies in corresponding event ordering.
It looks safe to rely on across platforms since the index is driven by signature
load order, which shouldn't deviate. If this somehow doesn't hold in the future,
we'll only wind up with a test failure, not incorrect match behavior.
(Correction to 2e03fbb8b0
, which I pushed
accidentally.)
This commit is contained in:
parent
5e0e2a8bd8
commit
b24c5c0e46
3 changed files with 10 additions and 20 deletions
|
@ -59,9 +59,6 @@ public:
|
|||
|
||||
void PrintDebug();
|
||||
|
||||
bool operator==(const Rule& other) { return strcmp(ID(), other.ID()) == 0; }
|
||||
bool operator<(const Rule& other) { return strcmp(ID(), other.ID()) < 0; }
|
||||
|
||||
static const char* TypeToString(Rule::PatternType type);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue