wireshark/capture
Guy Harris 0a9ef601d2 Clean up handling of --capture-comment.
Don't store the comments in a capture_options structure, because that's
available only if we're being built with capture support, and
--capture-comment can be used in TShark when reading a capture file and
writing another capture file, with no live capture taking place.

This means we don't handle that option in capture_opts_add_opt(); handle
it in the programs that support it.

Support writing multiple comments in dumpcap when capturing.

These changes also fix builds without pcap, and makes --capture-comment
work in Wireshark when a capture is started from the command line with
-k.

Update the help messages to indicate that --capture-comment adds a
capture comment, it doesn't change any comment (much less "the" comment,
as there isn't necessarily a single comment).

Update the man pages:

- not to presume that only pcapng files support file comments (even if
that's true now, it might not be true in the future);
- to note that multiple instances of --capture-comment are supported,
and that multiple comments will be written, whether capturing or reading
one file and writing another;
- clarify that Wireshark doesn't *discard* SHB comments other than the
first one, even though it only displays the first one;
2021-07-15 05:43:36 +00:00
..
.editorconfig
CMakeLists.txt CMake: Adjust wsutil includes and linking. 2021-07-14 03:56:05 +00:00
airpcap.h
airpcap_loader.c
airpcap_loader.h
capture-pcap-util-int.h If opening a capture device provides a warning, show it. 2021-06-23 02:31:31 -07:00
capture-pcap-util-unix.c If opening a capture device provides a warning, show it. 2021-06-23 02:31:31 -07:00
capture-pcap-util.c If opening a capture device provides a warning, show it. 2021-06-23 02:31:31 -07:00
capture-pcap-util.h If opening a capture device provides a warning, show it. 2021-06-23 02:31:31 -07:00
capture-wpcap.c If opening a capture device provides a warning, show it. 2021-06-23 02:31:31 -07:00
capture-wpcap.h
capture_ifinfo.c capture: Lower priority for some status messages 2021-06-14 22:05:35 +00:00
capture_ifinfo.h
capture_session.h
capture_sync.c Clean up handling of --capture-comment. 2021-07-15 05:43:36 +00:00
capture_sync.h Clean up handling of --capture-comment. 2021-07-15 05:43:36 +00:00
capture_win_ifnames.c Refactor our logging and extend the wslog API 2021-06-11 09:40:28 +00:00
capture_win_ifnames.h
iface_monitor.c
iface_monitor.h
ws80211_utils.c Cast away the return value of g_strlcpy() and g_strlcat(). 2021-04-30 03:19:19 -07:00
ws80211_utils.h