aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-04-07 20:57:08 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-04-07 20:57:08 -0400
commitf0f0f05060a16141a1a06be233b2884d6cc56e71 (patch)
tree9d0cbd033f5fe0ddc3bf2df8c087ce9f4f913903 /doc
parent37ccc2b0e58b9f7ea3479f721f3909e340d4cfea (diff)
editcap: Document use of stdin and stdout
Editcap accepts '-' for stdin or stdout, document that. Also change an incorrect statement that claims that the '-v' flag writes to standard output; it writes to standard error.
Diffstat (limited to 'doc')
-rw-r--r--doc/editcap.adoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/editcap.adoc b/doc/editcap.adoc
index b644e44669..35d9e8f814 100644
--- a/doc/editcap.adoc
+++ b/doc/editcap.adoc
@@ -60,7 +60,8 @@ __infile__, optionally converts them in various ways and writes the
resulting packets to the capture __outfile__ (or outfiles).
By default, it reads all packets from the __infile__ and writes them to the
-__outfile__ in pcapng file format.
+__outfile__ in pcapng file format. Use '-' for __infile__ or __outfile__
+to read from standard input or write to standard output, respectively.
The *-A* and *-B* option allow you to limit the time range from which packets
are read from the __infile__.
@@ -184,7 +185,7 @@ If a match is found, the current packet is skipped.
The use of the option *-D 0* combined with the *-v* option is useful
in that each packet's Packet number, Len and MD5 Hash will be printed
-to standard out. This verbose output (specifically the MD5 hash strings)
+to standard error. This verbose output (specifically the MD5 hash strings)
can be useful in scripts to identify duplicate packets across trace
files.