Actions
Bug #8439
open
XP
JI
examples/lib/live can not work
Bug #8439:
examples/lib/live can not work
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);
}
Actions