aboutsummaryrefslogtreecommitdiff
path: root/pcap_get_selectable_fd.3pcap
diff options
context:
space:
mode:
Diffstat (limited to 'pcap_get_selectable_fd.3pcap')
-rw-r--r--pcap_get_selectable_fd.3pcap8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcap_get_selectable_fd.3pcap b/pcap_get_selectable_fd.3pcap
index 883aae8c..5e200dd7 100644
--- a/pcap_get_selectable_fd.3pcap
+++ b/pcap_get_selectable_fd.3pcap
@@ -43,7 +43,7 @@ do a
or other such call
to wait for it to be possible to read packets without blocking, if such
a descriptor exists, or
-.BR PCAP_ERROR ,
+.BR \-1 ,
if no such descriptor exists.
.PP
Some network devices opened with
@@ -54,7 +54,7 @@ or with
.BR pcap_open_live (3PCAP),
do not support those calls (for example, regular network devices on
FreeBSD 4.3 and 4.4, and Endace DAG devices), so
-.B PCAP_ERROR
+.B \-1
is returned for
those devices. In that case, those calls must be given a timeout less
than or equal to the timeout returned by
@@ -62,7 +62,7 @@ than or equal to the timeout returned by
for the device for which
.BR pcap_get_selectable_fd ()
returned
-.BR PCAP_ERROR ,
+.BR \-1 ,
the device must be put in non-blocking mode with a call to
.BR \%pcap_setnonblock (3PCAP),
and an attempt must always be made to read packets from the device
@@ -145,7 +145,7 @@ work on that descriptor in Mac OS X 10.6 and later.
is not available on Windows.
.SH RETURN VALUE
A selectable file descriptor is returned if one exists; otherwise,
-.B PCAP_ERROR
+.B \-1
is returned.
.SH SEE ALSO
.BR pcap (3PCAP),