Project

General

Profile

Actions

Bug #8439

open
XP JI

examples/lib/live can not work

Bug #8439: examples/lib/live can not work

Added by Xiaojin Peng 1 day ago. Updated 1 day ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

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 1 day ago Actions #1

  • 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 1 day ago Actions #2

Thanks for the report. You are correct, just changing the name is the fix.

JI Updated by Jason Ish 1 day ago Actions #3

  • Status changed from In Progress to In Review
Actions

Also available in: PDF Atom