aboutsummaryrefslogtreecommitdiff
path: root/pcap_stats.3pcap
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-03-05 23:26:20 -0800
committerGuy Harris <gharris@sonic.net>2022-03-15 21:30:13 -0700
commit565f6ddc648695c8d84428861b0e9ea751529f81 (patch)
tree58c4f0f1d4ecdbd23bcc7f3c947af9c4e1448c06 /pcap_stats.3pcap
parent6b2551c0301200c024de833fa722e2097aa72bf2 (diff)
downloadlibpcap-565f6ddc648695c8d84428861b0e9ea751529f81.tar.gz
doc: document PCAP_ERROR_NOT_ACTIVATED for more routines.
(cherry picked from commit fdb5e7c141d4d444cd920fa4889d17f2f921aff8)
Diffstat (limited to 'pcap_stats.3pcap')
-rw-r--r--pcap_stats.3pcap9
1 files changed, 6 insertions, 3 deletions
diff --git a/pcap_stats.3pcap b/pcap_stats.3pcap
index aa03013c..98be9bd7 100644
--- a/pcap_stats.3pcap
+++ b/pcap_stats.3pcap
@@ -17,7 +17,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP_STATS 3PCAP "25 July 2018"
+.TH PCAP_STATS 3PCAP "5 March 2022"
.SH NAME
pcap_stats \- get capture statistics
.SH SYNOPSIS
@@ -85,9 +85,12 @@ that the interface did not drop any packets.
.BR pcap_stats ()
returns
.B 0
-on success and returns
+on success,
+.B PCAP_ERROR_NOT_ACTIVATED
+if called on a capture handle that has been created but not activated,
+or
.B PCAP_ERROR
-if there is an error or if
+if there is another error or if
.I p
doesn't support packet statistics. If
.B PCAP_ERROR