detect: add vlan.id keyword - v7 #12324
Closed
+481
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
detect-vlan-id.c changes:
vdata.layer
iscount
before returning: line 97vlan_id.rs changes:
VLAN_MAX_LAYERS
andVLAN_MAX_LAYER_IDX
: line 25, line 26du16.arg2
is a valid value: line 41.ok()
: line 56DETECT_VLAN_ID_COUNT
: line 49i8::from_str
: line 57any
option: line 53any
: line 107count
value: line 209layer
value: line 210vlan-keywords.rst changes:
any
: line 52SV_BRANCH=OISF/suricata-verify#2208
Previous PR= #12301