-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
detect: add vlan.id keyword - v10 #12374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alice, nice work
CI : rerunning to get green CI with rebased SV 🤞
Code : cool
Commits segmentation : ok
Commit messages : nice
Git ID set : looks fine for me
CLA : you already contributed
Doc update : thanks for fixing the typos
Redmine ticket : ok
Rustfmt : ok
Tests : ok cool
Dependencies added: none
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12374 +/- ##
==========================================
- Coverage 82.49% 82.48% -0.01%
==========================================
Files 912 914 +2
Lines 258083 258467 +384
==========================================
+ Hits 212897 213199 +302
- Misses 45186 45268 +82
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor rust style feedback
Think we're almost there, nice work :)
|
||
static void DetectVlanIdFree(DetectEngineCtx *de_ctx, void *ptr) | ||
{ | ||
rs_detect_vlan_id_free(ptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: new code should use SCDetectVlanIdFree
for public rust functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the whole PR, essentially there should be no new rs_
functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed
@jasonish @jufajardini do we have a better doc than https://docs.suricata.io/en/latest/devguide/codebase/code-style.html#function-names ?
Replaced by #12386 |
Ticket: #1065
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
https://redmine.openinfosecfoundation.org/projects/suricata/issues
Link to ticket: https://redmine.openinfosecfoundation.org/issues/1065
Description:
Changes:
>=
with>
so vlan.id can match on values up to 4095: line 45-VLAN_MAX_LAYERS
andVLAN_MAX_LAYERS - 1
: line 560 - 4095
: line 29du32
withdu8
: line 149SV_BRANCH=OISF/suricata-verify#2222
Previous PR: #12360