]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.1.in
Print an optional packet count on stderr instead of printing packets
[tcpdump] / tcpdump.1.in
index ccecde6abf5c7652d1f3a2e36db2e094ff952ea2..39bfe22b149c5be9659dc64d0c09d23784a69198 100644 (file)
@@ -39,6 +39,9 @@ tcpdump \- dump traffic on a network
 .I count
 ]
 [
+.B \-\-count
+]
+[
 .B \-C
 .I file_size
 ]
@@ -242,6 +245,12 @@ units of KiB (1024 bytes).
 .BI \-c " count"
 Exit after receiving \fIcount\fP packets.
 .TP
+.BI \-\-count
+Print only on stderr the packet count when reading capture file(s) instead
+of parsing/printing the packets. If a filter is specified on the command
+line, \fItcpdump\fP counts only packets that were matched by the filter
+expression.
+.TP
 .BI \-C " file_size"
 Before writing a raw packet to a savefile, check whether the file is
 currently larger than \fIfile_size\fP and, if so, close the current