diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-07-03 18:17:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-07-03 18:17:20 -0700 |
commit | 6f12c5d72b10b9e4ee1d1478e0ef598a8e040e98 (patch) | |
tree | ab0857fb91179a137d0547e5ea9daa5edbf2d593 /pcap_loop.3pcap | |
parent | dcb8e172aa233b35654a6c6e471cb8e78e8f8352 (diff) |
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.3pcap | 7 |
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 |