From a86c5f7cae7ec9a3398300555a0b644689d946a1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:14:53 +0200 Subject: Merging upstream version 4.4.0. Signed-off-by: Daniel Baumann --- doc/wsug_src/text2pcap-h.txt | 111 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 doc/wsug_src/text2pcap-h.txt (limited to 'doc/wsug_src/text2pcap-h.txt') diff --git a/doc/wsug_src/text2pcap-h.txt b/doc/wsug_src/text2pcap-h.txt new file mode 100644 index 00000000..934b2fe3 --- /dev/null +++ b/doc/wsug_src/text2pcap-h.txt @@ -0,0 +1,111 @@ +Text2pcap (Wireshark) 4.4.0 (v4.4.0rc1-11-g13699b5b3e78) +Generate a capture file from an ASCII hexdump of packets. +See https://www.wireshark.org for more information. + +Usage: text2pcap [options] + +where specifies input filename (use - for standard input) + specifies output filename (use - for standard output) + +Input: + -o hex|oct|dec|none parse offsets as (h)ex, (o)ctal, (d)ecimal, or (n)one; + default is hex. + -t treat the text before the packet as a date/time code; + is a format string supported by strptime, + with an optional %f descriptor for fractional seconds. + Example: The time "10:15:14.5476" has the format code + "%H:%M:%S.%f" + The special format string ISO supports ISO-8601 times. + NOTE: Date/time fields from the current date/time are + used as the default for unspecified fields. + -D the text before the packet starts with an I or an O, + indicating that the packet is inbound or outbound. + This is used when generating dummy headers if the + output format supports it (e.g. pcapng). + -a enable ASCII text dump identification. + The start of the ASCII text dump can be identified + and excluded from the packet data, even if it looks + like a HEX dump. + NOTE: Do not enable it if the input file does not + contain the ASCII text dump. + -r enable regex mode. Scan the input using , a Perl + compatible regular expression matching a single packet. + Named capturing subgroups are used to identify fields: + (mand.), and