suricata: don't display msg in list-keyword mode.

In list-keywords and list-app-layer mode, suricata now only
displays the messages linked with the feature. This allow users
to redirect the output and easily work on it. For exemple, the
csv output will be easily imported into a spreadsheet.
pull/175/merge
Eric Leblond 13 years ago committed by Victor Julien
parent 5e4552fdcd
commit 4e0f5b7f02

@ -1209,6 +1209,7 @@ int main(int argc, char **argv)
}
}
if (!list_keywords && !list_app_layer_protocols) {
#ifdef REVISION
SCLogInfo("This is %s version %s (rev %s)", PROG_NAME, PROG_VER, xstr(REVISION));
#elif defined RELEASE
@ -1216,6 +1217,7 @@ int main(int argc, char **argv)
#else
SCLogInfo("This is %s version %s", PROG_NAME, PROG_VER);
#endif
}
#ifndef HAVE_HTP_TX_GET_RESPONSE_HEADERS_RAW
SCLogWarning(SC_WARN_OUTDATED_LIBHTP, "libhtp < 0.2.7 detected. Keyword "
@ -1224,6 +1226,7 @@ int main(int argc, char **argv)
SetBpfString(optind, argv);
if (!list_keywords && !list_app_layer_protocols)
UtilCpuPrintSummary();
#ifdef __SC_CUDA_SUPPORT__
@ -1388,6 +1391,7 @@ int main(int argc, char **argv)
/* Load the Host-OS lookup. */
SCHInfoLoadFromConfig();
if (!list_keywords && !list_app_layer_protocols)
DefragInit();
if (run_mode == RUNMODE_UNKNOWN) {

Loading…
Cancel
Save