aboutsummaryrefslogtreecommitdiffstats
path: root/sharkd.c
diff options
context:
space:
mode:
authorPaul Offord <paul.offord58@gmail.com>2021-02-08 10:27:18 +0000
committerWireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com>2021-02-08 10:27:18 +0000
commit69df23fc40951556d2f9f303944f943547c31ac0 (patch)
treeabd4a8e28cd934e79a706432ec5a313d16f888dd /sharkd.c
parent37bef583dac539dd66e50c9f34a46563928356d2 (diff)
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
Diffstat (limited to 'sharkd.c')
-rw-r--r--sharkd.c2
1 files changed, 1 insertions, 1 deletions
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();