aboutsummaryrefslogtreecommitdiff
path: root/pcap_setnonblock.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-05 23:26:20 -0800
commitfdb5e7c141d4d444cd920fa4889d17f2f921aff8 (patch)
treee236621b1b22880caf7663799fa2d78d1791f736 /pcap_setnonblock.3pcap
parent33a33d23f51c43fabc7cdc110996df62a8b3e1c5 (diff)
doc: document PCAP_ERROR_NOT_ACTIVATED for more routines.
Diffstat (limited to 'pcap_setnonblock.3pcap')
-rw-r--r--pcap_setnonblock.3pcap7
1 files changed, 5 insertions, 2 deletions
diff --git a/pcap_setnonblock.3pcap b/pcap_setnonblock.3pcap
index 65cfea28..f194b949 100644
--- a/pcap_setnonblock.3pcap
+++ b/pcap_setnonblock.3pcap
@@ -17,7 +17,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP_SETNONBLOCK 3PCAP "25 July 2018"
+.TH PCAP_SETNONBLOCK 3PCAP "5 March 2022"
.SH NAME
pcap_setnonblock, pcap_getnonblock \- set or get the state of
non-blocking mode on a capture device
@@ -87,7 +87,10 @@ returns the current ``non-blocking'' state of the capture descriptor; it
always returns
.B 0
on ``savefiles''.
-If there is an error,
+If called on a capture handle that has been created but not activated,
+.B PCAP_ERROR_NOT_ACTIVATED
+is returned.
+If there is another error,
.B PCAP_ERROR
is returned and
.I errbuf