Wireshark-commits: [Wireshark-commits] master 03c6937: Have routines for parsing options that affec
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=03c6937e62b9b35960b65d573399d64b7a8fd147
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
03c6937 by Guy Harris (guy@xxxxxxxxxxxx):
Have routines for parsing options that affect dissection.
Have them handle -d, -t, --disable-protocol, --disable-heuristic, and
--enable-heuristic for TShark and both flavors of Wireshark.
Change-Id: I612c276b1f9df8a2092202d23ab3d48be7857e85
Reviewed-on: https://code.wireshark.org/review/18583
Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from e3b2b2f POP: replace wmem_strndup by tvb_memcpy
adds 03c6937 Have routines for parsing options that affect dissection.
Summary of changes:
capture_opts.h | 16 +-----
tshark.c | 93 +++++++++-----------------------
ui/CMakeLists.txt | 1 +
ui/Makefile.am | 2 +
ui/commandline.c | 57 ++++----------------
ui/commandline.h | 4 --
ui/dissect_opts.c | 125 +++++++++++++++++++++++++++++++++++++++++++
ui/dissect_opts.h | 106 ++++++++++++++++++++++++++++++++++++
ui/gtk/main.c | 13 ++---
ui/gtk/main_menubar.c | 9 ++--
ui/qt/main_window_slots.cpp | 12 +++--
wireshark-qt.cpp | 13 ++---
12 files changed, 297 insertions(+), 154 deletions(-)
create mode 100644 ui/dissect_opts.c
create mode 100644 ui/dissect_opts.h