Bug #8439
closedexamples/lib/live can not work
Description
Hi, the example live can not be up. The log is
test@test-vm:~/Desktop/src/suricata/examples/lib/live$ sudo ./live i ens33 - -l .
[sudo] password for test:
Passing command line arguments to Suricata: -l .
Error: runmodes: runmode 'live' has already been registered. Please use an unique name.
test@test-vm:~/Desktop/src/suricata/examples/lib/live$
when SCRunModeLibIdsRegister is called, the offline and live would be registered and later in main() the RunModeRegisterNewRunMode(live) would be called again and cause this FatalError.
I think a workaround is just registered a different name?
RunModeRegisterNewRunMode(
---> RUNMODE_LIB, "live1", "Live capture application run mode", AppRunModeSetup, NULL);
---> if (!SCConfSetFromString("runmode=live1", 1)) {
exit(EXIT_FAILURE);
}
JI Updated by Jason Ish about 1 month ago
- Status changed from New to In Progress
- Assignee set to Jason Ish
- Target version changed from TBD to 8.0.5
- Label deleted (
Needs backport to 8.0)
JI Updated by Jason Ish about 1 month ago
Thanks for the report. You are correct, just changing the name is the fix.
JI Updated by Jason Ish about 1 month ago
- Status changed from In Progress to In Review
Pull request: https://github.com/OISF/suricata/pull/15135
PA Updated by Philippe Antoine 16 days ago
- Status changed from In Review to Closed