Skip to content

detect/ftp: Use helper functions with ftp.command#13171

Closed
jlucovsky wants to merge 1 commit intoOISF:masterfrom
jlucovsky:command-helper/3
Closed

detect/ftp: Use helper functions with ftp.command#13171
jlucovsky wants to merge 1 commit intoOISF:masterfrom
jlucovsky:command-helper/3

Conversation

@jlucovsky
Copy link
Contributor

Continuation of #13164

Refactor ftp.command handling to use helper functions from detect-engine-helper.[ch] for reduced code duplication.

Describe changes:

  • Refactor the ftp.command keyword handling to use the helper functions for code reduction.

Updates:

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=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

Refactor ftp.command handling to use helper functions from
detect-engine-helper.[ch] for reduced code duplication.
@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.07%. Comparing base (4e2f1de) to head (319403c).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #13171      +/-   ##
==========================================
- Coverage   83.08%   83.07%   -0.02%     
==========================================
  Files         988      988              
  Lines      271850   272123     +273     
==========================================
+ Hits       225874   226064     +190     
- Misses      45976    46059      +83     
Flag Coverage Δ
fuzzcorpus 61.36% <50.00%> (-0.07%) ⬇️
livemode 18.91% <50.00%> (-0.04%) ⬇️
pcap 44.87% <50.00%> (+0.07%) ⬆️
suricata-verify 64.83% <75.00%> (+0.01%) ⬆️
unittests 58.13% <50.00%> (-0.07%) ⬇️

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

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 627 657 104.78%

Pipeline 26007

@victorjulien victorjulien added this to the 8.0 milestone May 7, 2025
@victorjulien
Copy link
Member

Merged in #13179, thanks!

@jlucovsky jlucovsky deleted the command-helper/3 branch May 8, 2025 11:41
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