Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nonterminating "hitcount" rule #257

Merged
merged 5 commits into from
Dec 13, 2024

Conversation

ol-imorozko
Copy link
Collaborator

@ol-imorozko ol-imorozko commented Nov 25, 2024

The hitcount action is designed to count the number of times a rule is hit.
It will be introduced in a ruleset as a duplecate of regular rule,
but its action is hitcount instead of a terminating action.

The hitcount values will be aggregated and returned upon request.

We use "hitcount" instead of just "count" to not interfere with IPFW
"count" rule.

@ol-imorozko ol-imorozko force-pushed the rule-counters branch 2 times, most recently from 4f3d75a to fbaa76b Compare November 26, 2024 12:11
This commit introduces parsing for the hitcount rule.
The tests and the actual semantics will be implemented later.

The hitcount action is designed to count the number of times a rule is hit.
It will be introduced in a ruleset as a duplecate of regular rule,
but its action is hitcount instead of a terminating action.

The hitcount values will be aggregated and returned upon request.

We use "hitcount" instead of just "count" to not interfere with IPFW
"count" rule.
@ol-imorozko ol-imorozko changed the title WIP: add nonterminating "hitcount" rule Add nonterminating "hitcount" rule Nov 28, 2024
@ol-imorozko ol-imorozko force-pushed the rule-counters branch 2 times, most recently from 407e561 to 14a14e9 Compare November 29, 2024 11:00
@ol-imorozko ol-imorozko merged commit 86b0b54 into yanet-platform:main Dec 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants