summaryrefslogtreecommitdiff
path: root/contrib/libpcap/pcap_loop.3pcap
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-05-30 08:02:00 +0000
committerXin LI <delphij@FreeBSD.org>2013-05-30 08:02:00 +0000
commitedc89b24f34e5335ee722d9b477c1f984acd2b7f (patch)
tree5ab08c0c24a5cec0f64a701f8ba689a47b1d5fec /contrib/libpcap/pcap_loop.3pcap
parent2493d5e6cba8f97bf3536531d483452c30429949 (diff)
parent59ed76438047aa730b3a617abd873b84457fc4fd (diff)
downloadsrc-test2-edc89b24f34e5335ee722d9b477c1f984acd2b7f.tar.gz
src-test2-edc89b24f34e5335ee722d9b477c1f984acd2b7f.zip
Notes
Diffstat (limited to 'contrib/libpcap/pcap_loop.3pcap')
-rw-r--r--contrib/libpcap/pcap_loop.3pcap7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/libpcap/pcap_loop.3pcap b/contrib/libpcap/pcap_loop.3pcap
index da3069310a2b..7e0b582baca3 100644
--- a/contrib/libpcap/pcap_loop.3pcap
+++ b/contrib/libpcap/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