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

decode/ethertype: Event on unknown ethertype #12511

Closed
wants to merge 4 commits into from

Conversation

jlucovsky
Copy link
Contributor

Continuation of #12495

Issue: 7129

Create a decode/engine event if unknown ethertypes are observed.

Note: this PR results in 2 counters tracking unknown ethertypes; https://redmine.openinfosecfoundation.org/issues/7528 tracks the removal of the non-event value.

Link to ticket: https://redmine.openinfosecfoundation.org/issues/7129

Describe changes:

  • Add an event created when unknown ethertypes are observed
  • Update schema with event counter
  • Add rule for event.

Updates

  • Rebase s-v and suricata branches

Provide values to any of the below to override the defaults.

  • To use an LibHTP, Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=OISF/suricata-verify#1954
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

Issue: 7129

Create a decode/engine event if unknown ethertypes are observed.
Issue: 7129

Document the unknown ethertype event.
Issue 7129

When configured with the existing "ethernet" switch, include the ether
type in the output.

This is most useful with anomaly records indicating unknown ethertypes.
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.57%. Comparing base (cfbf8fd) to head (8b756b2).
Report is 21 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12511      +/-   ##
==========================================
+ Coverage   80.56%   80.57%   +0.01%     
==========================================
  Files         925      925              
  Lines      259292   259294       +2     
==========================================
+ Hits       208906   208936      +30     
+ Misses      50386    50358      -28     
Flag Coverage Δ
fuzzcorpus 56.15% <50.00%> (+<0.01%) ⬆️
livemode 19.40% <50.00%> (+<0.01%) ⬆️
pcap 44.21% <50.00%> (+0.01%) ⬆️
suricata-verify 63.40% <100.00%> (+0.01%) ⬆️
unittests 58.43% <50.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien added this to the 8.0 milestone Jan 30, 2025
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24460

@victorjulien
Copy link
Member

Merged in #12514, thanks!

@jlucovsky jlucovsky deleted the 7129/9 branch January 31, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants