aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/wsug_src/WSUG_chapter_io.adoc
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-08-27 20:39:07 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-02-25 20:29:16 -0500
commitcbf76ea22f60a76084bd2bbb59042cb73a57afa5 (patch)
tree5aa7042f8f34a3822ea97476a7831ec715a958a6 /docbook/wsug_src/WSUG_chapter_io.adoc
parentf457caae01d6841dd64ca353b96240441b262f3f (diff)
Export PDU: Allow native encapsulations / strip headers
Allow export PDU taps to be registered with a wiretap encapsulation instead of always using WTAP_ENCAP_WIRESHARK_UPPER_PDU. This allows creating normal capture files that aren't tied to wireshark without having to do a "editcap -C -L -T", as well as creating files in formats other than pcapng and pcap with tshark. Provide a couple sample implementations in Ethernet (WTAP_ENCAP_ETHERNET) and IP (v4 and v6, WTAP_ENCAP_RAW_IP) that are the most common use cases. (I can imagine a few others; WTAP_ENCAP_MPEG_2_TS could probably be useful, for example.) Fixes #15141
Diffstat (limited to 'docbook/wsug_src/WSUG_chapter_io.adoc')
-rw-r--r--docbook/wsug_src/WSUG_chapter_io.adoc18
1 files changed, 12 insertions, 6 deletions
diff --git a/docbook/wsug_src/WSUG_chapter_io.adoc b/docbook/wsug_src/WSUG_chapter_io.adoc
index cc7e5ebbe0..232c019814 100644
--- a/docbook/wsug_src/WSUG_chapter_io.adoc
+++ b/docbook/wsug_src/WSUG_chapter_io.adoc
@@ -1001,25 +1001,31 @@ image::wsug_graphics/ws-export-pdus-to-file.png[{screenshot-attrs}]
. To select the data according to your needs, type the filter value into the `Display Filter` field. For more information about filters syntax, see the link:https://www.wireshark.org/docs/man-pages/wireshark-filter.html[Wireshark Filters] man page.
-. In the field below the `Display Filter` field you can choose the level, from which you want to export the PDUs to the file. There are seven levels:
+. In the field below the `Display Filter` field you can choose the level from which you want to export the PDUs to the file. There are nine levels:
+
.. `DLT User`. You can export a protocol, which is framed in the user data link type table without the need to reconfigure the DLT user table. For more information, see the link:https://gitlab.com/wireshark/wireshark/-/wikis/HowToDissectAnything[How to Dissect Anything] page.
+
.. `DVB-CI`. You can use it for the Digital Video Broadcasting (DVB) protocol.
+
+.. `Ethernet`. You can use it to export Ethernet encapsulated in other protocols.
++
+.. `IP`. You can use it to export IPv4 and IPv6 encapsulated in other protocols.
++
.. `Logcat` and `Logcat Text`. You can use them for the Android logs.
+
-.. `OSI layer 3`. You can use it to export encapsulated in IPSec or SCTP protocols.
+.. `OSI layer 3`. You can use it to export PDUs encapsulated in the IPSec or SCTP protocols.
+
-.. `OSI layer 4`. You can use it to export encapsulated in TCP or UDP protocols.
+.. `OSI layer 4`. You can use it to export PDUs encapsulated in the TCP or UDP protocols.
+
.. `OSI layer 7`. You can use it to export the following protocols: CredSSP over TLS, Diameter, protocols encapsulated in TLS and DTLS, H.248, Megaco, RELOAD framing, SIP, SMPP.
+
-NOTE: You can add any dissector to the existing list, or define a new entry in the list.
+NOTE: As a developer you can add any dissector to the existing list or define a new entry in the list by using the functions in `epan/exported_pdu.h`.
-. To finish exporting PDUs to file, click the btn:[OK] button in the bottom-right corner.
+. To finish exporting PDUs to file, click the btn:[OK] button in the bottom-right corner. This will close the originally captured file and open the exported results instead as a temporary file in the main Wireshark window.
-. You can open the file from the main Wireshark window by choosing it in the bottom-left corner. That closes the originally captured file and opens the exported results instead.
+. You may save the temporary file just like any captured file. See <<ChIOSaveSection>> for details.
++
+NOTE: The `Ethernet` and `IP` options produce capture files with common encapsulation types that can be read in virtually any other tool, but the other options produce files with a `Wireshark Upper PDU` encapsulation type that has more limited support outside of Wireshark.
[#ChIOExportTLSSessionKeys]