summaryrefslogtreecommitdiff
path: root/tcpdump.1.in
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2020-08-29 02:48:07 +0100
committerDenis Ovsienko <denis@ovsienko.info>2020-08-29 02:48:07 +0100
commit870eeabe8970db22c9c5f88d64b7b37bdd84bd49 (patch)
tree1dc681bf4c661c02512a4b9b08cd4d71e59ccc09 /tcpdump.1.in
parentbc3bc62f51d022e86618a7c8d5408cbec06020c9 (diff)
downloadtcpdump-870eeabe8970db22c9c5f88d64b7b37bdd84bd49.tar.gz
Report periodic stats only when safe to do so. [skip ci]tcpdump-4.10.0-bp
As explained in GH #155, when tcpdump is given -r, -w and -v and it takes long enough to read from the input file (because it is stdin connected through network or a pipe to stdout of another tcpdump doing a live capture), pcap_loop() will error before long. One of the ways to reproduce the fault is as follows: $ tcpdump -i eno1 -w - | tcpdump -r - -w /tmp/tmp.pcap -v tcpdump: listening on eno1, link-type EN10MB (Ethernet), snapshot length 262144 bytes reading from file -, link-type EN10MB (Ethernet), snapshot length 262144 tcpdump: pcap_loop: error reading dump file: Interrupted system call Skip the verbose_stats_dump() timer setup in this specific corner case for the time being and document it.
Diffstat (limited to 'tcpdump.1.in')
-rw-r--r--tcpdump.1.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcpdump.1.in b/tcpdump.1.in
index 7f716ab8..bf4d7b20 100644
--- a/tcpdump.1.in
+++ b/tcpdump.1.in
@@ -20,7 +20,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH TCPDUMP 1 "10 Aug 2020"
+.TH TCPDUMP 1 "29 Aug 2020"
.SH NAME
tcpdump \- dump traffic on a network
.SH SYNOPSIS
@@ -808,6 +808,8 @@ IP and ICMP header checksum.
.IP
When writing to a file with the
.B \-w
+option and at the same time not reading from a file with the
+.B \-r
option, report, once per second, the number of packets captured.
.TP
.B \-vv