wireshark/ui
AndersBroman 6d2ea733dd Implement Export PDU for tshark
This patch introduces the "-U tap_name[,filter]" tshark option and
is similar to the "Export PDUs as file" option in Wireshark.

Wireshark implements this feature by reopening a capture file, applying
a tap and finally opening the temporary file. Since tshark knows
in advance that a PDU export is needed, it can optimize by not creating
the temporary file and perform the export at the first opportunity.

This patch splits the opening/tapping functionality from error reporting
since tshark does not need a temp file and has no dialogs.

The capture file comment is now specified explicitly as there is no
"current file" anymore if the tap is running without active file.

TODO:

 - Review whether it is acceptable to overwrite save_file in tshark.
 - Add documentation (tshark manpage).

Bug: 3444
Change-Id: Ie159495d42c32c2ba7400f2991b7b8185b3fda09
Reviewed-on: https://code.wireshark.org/review/5890
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-05-03 10:17:46 +00:00
..
cli Replace and remove host_ip_af() function 2016-04-08 20:49:22 +00:00
gtk Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
qt Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
win32 Win32: Pass a mutable string to CreateProcess. 2016-04-28 23:50:28 +00:00
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
Makefile.am Make the Flex scanners and YACC parser in libraries reentrant. 2016-04-03 22:21:29 +00:00
Makefile.common Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
Makefile.nmake Don't add the wiretap directory to the list of include directories. 2016-02-18 12:55:26 +00:00
alert_box.c Make failure_alert_box() be printf-like. 2016-03-27 02:06:28 +00:00
alert_box.h Make failure_alert_box() be printf-like. 2016-03-27 02:06:28 +00:00
all_files_wildcard.h Add a #define for the wildcard pattern that matches all files. 2016-03-01 02:00:25 +00:00
capture.c Allow "capture info data" to not be a singleton. 2015-12-19 14:22:56 +00:00
capture.h capture(.h): fix api reference 2016-01-26 09:10:25 +00:00
capture_globals.h Allow "capture info data" to not be a singleton. 2015-12-19 14:22:56 +00:00
capture_ui_utils.c Qt: Use uniform interface display name 2015-12-02 09:57:35 +00:00
capture_ui_utils.h Qt: Update selected interface filter behavior. 2016-02-26 17:28:04 +00:00
console.c (Trivial) Fix printf-related 'Mismatch on sign' warnings 2015-02-09 18:57:14 +00:00
console.h
decode_as_utils.c Link version code statically again 2016-04-21 18:59:56 +00:00
decode_as_utils.h tshark: load decode_as_entries file 2016-02-21 18:25:01 +00:00
doxygen.cfg.in
export_object.c Move the proto data stuff out of frame_data.[ch]. 2016-01-25 02:24:34 +00:00
export_object.h
export_object_dicom.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
export_object_http.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
export_object_smb.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
export_object_tftp.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
export_pdu_ui_utils.c Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
export_pdu_ui_utils.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
file_dialog.h
help_url.c Fix building without extcap enabled 2016-03-21 17:10:21 +00:00
help_url.h Fix building without extcap enabled 2016-03-21 17:10:21 +00:00
iface_lists.c Fix "No interfaces selected" when restarting capture 2016-04-01 00:22:33 +00:00
iface_lists.h ui: Update interfaces when when changing profile. 2015-12-02 11:33:24 +00:00
io_graph_item.c
io_graph_item.h Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
language.c Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
language.h Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
last_open_dir.h
main_statusbar.h
mcast_stream.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
mcast_stream.h Fix crash in UDP Multicast Streams dialog 2015-11-27 21:15:11 +00:00
packet_list_utils.c Qt: Add missing multi-field column validation 2015-12-20 08:21:02 +00:00
packet_list_utils.h
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c prefutils: Add convenience function 2016-01-26 16:37:06 +00:00
preference_utils.h prefutils: Add convenience function 2016-01-26 16:37:06 +00:00
profile.c profile_name_is_valid() returns a malloced string [-Wcast-qual] 2016-01-21 02:32:46 +00:00
profile.h profile_name_is_valid() returns a malloced string [-Wcast-qual] 2016-01-21 02:32:46 +00:00
progress_dlg.h const gpointer -> gconstpointer 2016-02-16 05:10:49 +00:00
proto_hier_stats.c Walk up the tree view of Protocol Hierarchy Statistics to look for protocol matches. 2016-03-12 03:05:07 +00:00
proto_hier_stats.h Qt: Add the Protocol Hierarchy statistics dialog. 2015-02-04 02:06:01 +00:00
recent.c Remove the last remnants of U3 support. 2016-03-11 19:55:57 +00:00
recent.h Qt: use recent.gui_bytes_view preference to remember bits / byte view 2015-12-18 06:46:46 +00:00
recent_utils.h
rtp_media.c Start moving RTP decoding routines to the ui directory. 2015-09-19 15:02:16 +00:00
rtp_media.h Qt: fix jitter buffer management 2016-02-10 20:26:21 +00:00
rtp_stream.c Clean up includes of unistd.h, fcntl.h, and sys/stat.h. 2015-11-07 21:52:23 +00:00
rtp_stream.h Disable RTP player debug logs that were presumably left activated by mistake 2015-11-01 17:19:42 +00:00
service_response_time.c Squelch a compiler warning. 2015-07-04 02:31:55 +00:00
service_response_time.h Add ServiceResponseTimeDialog. 2015-07-03 23:09:13 +00:00
simple_dialog.h Do error checking on simple_error_message_box() calls and fix errors. 2015-07-04 02:39:18 +00:00
software_update.c
software_update.h
ssl_key_export.c Export CLIENT_RANDOM with Export SSL Session Keys 2015-03-12 16:27:10 +00:00
ssl_key_export.h
tap-iax2-analysis.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
tap-iax2-analysis.h Add the IAX2 Analysis dialog. 2015-09-09 21:57:08 +00:00
tap-rlc-graph.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
tap-rlc-graph.h Always supply a g_mallocated error message from select_rlc_lte_session(). 2015-12-29 08:01:54 +00:00
tap-rtp-analysis.h Move IAX2 analysis to the ui directory. 2015-09-03 21:48:48 +00:00
tap-rtp-common.c Move the proto data stuff out of frame_data.[ch]. 2016-01-25 02:24:34 +00:00
tap-rtp-common.h Add the RTP Stream Analysis dialog. 2015-07-16 00:30:14 +00:00
tap-sctp-analysis.c Add free_address_wmem(), fix warnings [-Wcast-qual] 2016-02-26 23:09:43 +00:00
tap-sctp-analysis.h Move some definitions and declarations around. 2016-01-12 07:22:30 +00:00
tap-sequence-analysis.c Fix warnings/errors of type -Wused-but-marked-unused 2016-03-28 13:27:52 +00:00
tap-sequence-analysis.h Only store frame number and not a pointer to frame_data structure in seq_analysis_item_t 2015-10-26 23:57:51 +00:00
tap-tcp-stream.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
tap-tcp-stream.h
tap_export_pdu.c Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
tap_export_pdu.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
text_import.c Make the Flex scanners and YACC parser in libraries reentrant. 2016-04-03 22:21:29 +00:00
text_import.h Make the Flex scanners and YACC parser in libraries reentrant. 2016-04-03 22:21:29 +00:00
text_import_scanner.h
text_import_scanner.l Make the Flex scanners and YACC parser in libraries reentrant. 2016-04-03 22:21:29 +00:00
time_shift.c Avoid unnecessary replacement source file floorl.c 2016-04-04 23:58:31 +00:00
time_shift.h
traffic_table_ui.c Make address_to_display() use proper (non-)constness 2015-11-29 00:25:11 +00:00
traffic_table_ui.h
ui_util.h No need for toolkit-dependent color initialization. 2016-01-01 04:15:29 +00:00
util.c Replace and remove host_ip_af() function 2016-04-08 20:49:22 +00:00
util.h Add display_is_remote. 2015-07-16 16:17:33 +00:00
voip_calls.c Fix warnings/errors of type -Wused-but-marked-unused 2016-03-28 13:27:52 +00:00
voip_calls.h Qt: various fixes to VoIP calls / RTP player windows 2015-12-09 16:54:33 +00:00