]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.1.in
Add --skip option to skip some packets before writing or printing
[tcpdump] / tcpdump.1.in
index 618ce0b100dad1338d1fdd35f43e193274c2930f..0acb79eb8cc0cc4d977e663322700582844e34d4 100644 (file)
@@ -108,17 +108,21 @@ tcpdump \- dump traffic on a network
 .I snaplen
 ]
 [
+.B \-\-skip
+.I count
+]
+[
 .B \-T
 .I type
 ]
 [
 .B \-\-version
 ]
+.ti +8
 [
 .B \-V
 .I file
 ]
-.ti +8
 [
 .B \-w
 .I file
@@ -275,7 +279,10 @@ Set the operating system capture buffer size to \fIbuffer_size\fP, in
 units of KiB (1024 bytes).
 .TP
 .BI \-c " count"
-Exit after receiving \fIcount\fP packets.
+Exit after receiving or reading \fIcount\fP packets.
+If the
+.B --skip
+option is used, the \fIcount\fP starts after the skipped packets.
 .TP
 .BI \-\-count
 Print only on stdout the packet count when reading capture file(s) instead
@@ -761,6 +768,10 @@ protocol information you're interested in.  Setting
 for backwards compatibility with recent older versions of
 .IR tcpdump .
 .TP
+.BI \-\-skip " count"
+Skip \fIcount\fP packets before writing or printing.
+\fIcount\fP with value 0 is allowed.
+.TP
 .BI \-T " type"
 Force packets selected by "\fIexpression\fP" to be interpreted the
 specified \fItype\fR.