From 69df23fc40951556d2f9f303944f943547c31ac0 Mon Sep 17 00:00:00 2001 From: Paul Offord Date: Mon, 8 Feb 2021 10:27:18 +0000 Subject: sharkd: Add configuration profile and other options This change adds code to allow the selection of a configuration profile during sharkd start by adding a -C command line option. A new -a option has been added to specify the api service endpoint e.g. tcp:127.0.0.1:4446 The change also adds version display (-v) and help display (-h) options. These additions have been made in a way to ensure that the original command line options still work correctly to maintain backward compatibility. The new options have been added using the getopt_long(...) function that is used by tshark to simplify the addition of further command line options. Closes #17222 --- sharkd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sharkd.c') diff --git a/sharkd.c b/sharkd.c index 467e3c330a..91ca5892e6 100644 --- a/sharkd.c +++ b/sharkd.c @@ -187,7 +187,7 @@ main(int argc, char *argv[]) uat_clear(uat_get_table_by_name("MaxMind Database Paths")); #endif - ret = sharkd_loop(); + ret = sharkd_loop(argc, argv); clean_exit: col_cleanup(&cfile.cinfo); free_filter_lists(); -- cgit v1.2.3