Skip to content

suricata: add warning about missing runmode#14889

Closed
inashivb wants to merge 1 commit intoOISF:mainfrom
inashivb:pr/14417/respinned/v1
Closed

suricata: add warning about missing runmode#14889
inashivb wants to merge 1 commit intoOISF:mainfrom
inashivb:pr/14417/respinned/v1

Conversation

@inashivb
Copy link
Copy Markdown
Member

Previous PR: #14417

Changes since 14417:

  • updated fn definitions across examples/lib
  • s-v test added
  • rebased on top of latest main

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

SV_BRANCH=OISF/suricata-verify#2934

Note: I had suggested this approach when the ask was to warn only when there are cmdline args passed and no runmodes specified but looking at it now, this approach seems to be changing core API affecting library users as well so maybe a bad idea. Thoughts?

If a runmode is missing but other params are passed on the commandline,
issue a warning.

Ticket: OISF#5711

Signed-off-by: Promise Charles <descencybobby@gmail.com>
@github-actions
Copy link
Copy Markdown

NOTE: This PR may contain new authors.

@suricata-qa
Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 29855

Copy link
Copy Markdown
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.

Note: I had suggested this approach when the ask was to warn only when there are cmdline args passed and no runmodes specified but looking at it now, this approach seems to be changing core API affecting library users as well so maybe a bad idea. Thoughts?

Considering this is for 9, I think it should be fine. Do we want the solution to be unified across versions?

@victorjulien
Copy link
Copy Markdown
Member

@jasonish any thoughts on the API change?

@jasonish
Copy link
Copy Markdown
Member

jasonish commented Mar 5, 2026

@jasonish any thoughts on the API change?

Ok. Just don't backport.

@inashivb inashivb marked this pull request as ready for review March 5, 2026 20:12
@inashivb inashivb requested review from a team and victorjulien as code owners March 5, 2026 20:12
@inashivb
Copy link
Copy Markdown
Member Author

inashivb commented Mar 5, 2026

sorry didn't realize it was still a draft. Please feel free to give a verdict.

Copy link
Copy Markdown
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

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

Thanks for the work,

CI : ✅
Code : good
Commits segmentation : simple enough
Commit messages : nice
Git ID set : looks fine for me
CLA : not sure 🟡
Doc update : not needed
Redmine ticket : ok
Rustfmt : no rust
Tests : cool
Dependencies added: none

Comment thread src/suricata.c
@inashivb inashivb closed this Apr 2, 2026
@inashivb inashivb deleted the pr/14417/respinned/v1 branch April 2, 2026 06:51
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.

7 participants