Conversation
vlan.id matches on Virtual Local Area Network IDs It is an unsigned 16-bit integer Valid range for the default configuration = [1-4094] Supports prefiltering Ticket: OISF#1065
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12333 +/- ##
==========================================
- Coverage 83.26% 83.20% -0.06%
==========================================
Files 912 914 +2
Lines 257643 257864 +221
==========================================
+ Hits 214521 214564 +43
- Misses 43122 43300 +178
Flags with carried forward coverage won't be shown. Click here to find out more. |
catenacyber
left a comment
There was a problem hiding this comment.
CI : 🟢
Code : cool
Commits segmentation : ok
Commit messages : nice
Git ID set : looks fine for me
CLA : you already contributed
Doc update : excellent
Redmine ticket : ok
Rustfmt : ok for vlan_id.rs
Tests : nice
Dependencies added: none
| #[derive(Debug, PartialEq)] | ||
| pub struct DetectVlanIdData { | ||
| pub du16: DetectUintData<u16>, | ||
| pub layer: i8, |
There was a problem hiding this comment.
this need some documentation
| 0 - 2 Match specific layer | ||
| ``-3`` - ``-1`` Match specific layer with back to front indexing | ||
| all Match only if all layers match | ||
| count Match on the number of layers |
There was a problem hiding this comment.
while I like that we can match on this, I do question integrating it with a vlan.id keyword. Should we have a vlan.layers keyword instead? I feel that these options are not only not about the id, they also bring their own syntax.
There was a problem hiding this comment.
Ok.
About naming, should we have a unique naming scheme count for such keywords ?
Like vlan.layers.count ldap.responses.count...
|
Replaced by: #12360 |
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:
vlan_id.rs changes:
SV_BRANCH=OISF/suricata-verify#2208
Previous PR: #12324