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

De cleanups/20241010/v2 #11937

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

inashivb
Copy link
Member

Previous PR: #11928

Changes since v1:

  • rebased on top of latest master
  • rename whitelisting setting to priority to reflect correct purpose

@inashivb inashivb requested review from victorjulien and a team as code owners October 11, 2024 06:28
This was done following the fact that this setting was historically
named incorrectly. The purpose of the setting was always to define the
ports that will be prioritized and have rule groups associated w them on
priority. Rename all occurences of this to correctly reflect the purpose
of the setting.
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 73.68421% with 10 lines in your changes missing coverage. Please review.

Project coverage is 82.73%. Comparing base (58556b7) to head (6931e8f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11937      +/-   ##
==========================================
- Coverage   82.74%   82.73%   -0.02%     
==========================================
  Files         912      912              
  Lines      249102   249088      -14     
==========================================
- Hits       206117   206078      -39     
- Misses      42985    43010      +25     
Flag Coverage Δ
fuzzcorpus 60.80% <71.05%> (+0.08%) ⬆️
livemode 18.72% <47.36%> (-0.13%) ⬇️
pcap 44.06% <73.68%> (-0.06%) ⬇️
suricata-verify 62.16% <73.68%> (-0.02%) ⬇️
unittests 59.00% <60.52%> (+<0.01%) ⬆️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23087


const char *ports = NULL;
(void)ConfGet("detect.grouping.tcp-whitelist", &ports);
Copy link
Member

Choose a reason for hiding this comment

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

we need to handle old configs as well, which means we first read the new tcp-priorityports option, but if it doesn't exist, we try tcp-whitelist

Btw tcp-priority-ports looks better to me.

Copy link
Member

@victorjulien victorjulien left a comment

Choose a reason for hiding this comment

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

see inline

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