aboutsummaryrefslogtreecommitdiff
path: root/pcap_loop.3pcap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-07-03 18:17:20 -0700
committerGuy Harris <guy@alum.mit.edu>2012-07-03 18:17:20 -0700
commit6f12c5d72b10b9e4ee1d1478e0ef598a8e040e98 (patch)
treeab0857fb91179a137d0547e5ea9daa5edbf2d593 /pcap_loop.3pcap
parentdcb8e172aa233b35654a6c6e471cb8e78e8f8352 (diff)
downloadlibpcap-6f12c5d72b10b9e4ee1d1478e0ef598a8e040e98.tar.gz
Fix documentation of return values.
Note that pcap_loop() can return 0 if you're reading from a savefile and you hit the EOF. Fix a typo while we're at it.
Diffstat (limited to 'pcap_loop.3pcap')
-rw-r--r--pcap_loop.3pcap7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcap_loop.3pcap b/pcap_loop.3pcap
index da306931..7e0b582b 100644
--- a/pcap_loop.3pcap
+++ b/pcap_loop.3pcap
@@ -84,7 +84,7 @@ processed when reading a ``savefile''.
\fIcnt\fP
was 0 was undefined; different platforms and devices behaved
differently, so code that must work with older versions of libpcap
-should use \-1, nor 0, as the value of
+should use \-1, not 0, as the value of
\fIcnt\fP.)
.ft R
.PP
@@ -119,8 +119,9 @@ them.
.B pcap_loop()
returns 0 if
.I cnt
-is exhausted, \-1 if an error occurs, or \-2 if the loop terminated due
-to a call to
+is exhausted or if, when reading from a ``savefile'', no more packets
+are available. It returns \-1 if an error occurs or \-2 if the loop
+terminated due to a call to
.B pcap_breakloop()
before any packets were processed.
It does