Skip to content

detect/proto: check ipproto enabled setting first#14802

Closed
inashivb wants to merge 1 commit intoOISF:mainfrom
inashivb:appproto-enabling/v8
Closed

detect/proto: check ipproto enabled setting first#14802
inashivb wants to merge 1 commit intoOISF:mainfrom
inashivb:appproto-enabling/v8

Conversation

@inashivb
Copy link
Member

@inashivb inashivb commented Feb 13, 2026

Previous PR: #14761

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

Changes since v7:

  • change commit message to be clearer
  • doc nits
  • rebased on top of latest main

SV_BRANCH=OISF/suricata-verify#2912

If the key `app-layer.protocols.PROTO.enabled` is present, the protocol
is enabled for all carrier protocols. This is not ideal.
Only if the key `app-layer.protocols.PROTO.enabled` is missing, an
attempt is made to look for a setting specific to the ipproto passed
at the time of registration e.g.
`app-layer.protocols.PROTO.udp.enabled`.

By default, check for carrier proto specific setting. If it is not
found, then fall back to the generic setting.
Issue a warning in case an inconsistent combination of global and
ipproto specific setting is found.

Bug 8205
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 83.72093% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.16%. Comparing base (571681b) to head (136dad8).
⚠️ Report is 74 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14802      +/-   ##
==========================================
+ Coverage   82.15%   82.16%   +0.01%     
==========================================
  Files        1003     1003              
  Lines      263674   263712      +38     
==========================================
+ Hits       216610   216675      +65     
+ Misses      47064    47037      -27     
Flag Coverage Δ
fuzzcorpus 60.17% <52.32%> (-0.02%) ⬇️
livemode 18.78% <67.44%> (-0.12%) ⬇️
netns 18.95% <44.18%> (+0.06%) ⬆️
pcap 44.64% <66.27%> (+<0.01%) ⬆️
suricata-verify 65.45% <81.39%> (-0.02%) ⬇️
unittests 59.23% <69.76%> (+<0.01%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 29570

Copy link
Contributor

@jufajardini jufajardini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs and commit message look good to me, thanks :)

@victorjulien
Copy link
Member

Git message prefix suggests this is about the detection engine, but it's about app-layer.

@inashivb
Copy link
Member Author

Git message prefix suggests this is about the detection engine, but it's about app-layer.

Changed in the following rev. Please check. Thank you!

@inashivb inashivb closed this Feb 23, 2026
@inashivb inashivb deleted the appproto-enabling/v8 branch February 23, 2026 03:23
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.

4 participants