diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-11-23 20:56:35 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-11-23 20:56:35 -0800 |
commit | 48fbe321170f30de3e0c2aed5927aff9b0893a66 (patch) | |
tree | ca007998219e42ea1660767ff19ebd7c57d9adbb /pcap_stats.3pcap | |
parent | b262e73dfdda6599b3b08750fcd6ff2a6a5a16c0 (diff) |
Style cleanup.
Use the BSD house style, in which, in
foobar() returns 17 on success and 137 on failure.
"foobar" is boldfaced but "()" isn't.
Diffstat (limited to 'pcap_stats.3pcap')
-rw-r--r-- | pcap_stats.3pcap | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap_stats.3pcap b/pcap_stats.3pcap index e4fd210f..9a50375b 100644 --- a/pcap_stats.3pcap +++ b/pcap_stats.3pcap @@ -31,13 +31,13 @@ int pcap_stats(pcap_t *p, struct pcap_stat *ps); .ft .fi .SH DESCRIPTION -.B pcap_stats() +.BR pcap_stats () fills in the .B struct pcap_stat pointed to by its second argument. The values represent packet statistics from the start of the run to the time of the call. .PP -.B pcap_stats() +.BR pcap_stats () is supported only on live captures, not on ``savefiles''; no statistics are stored in ``savefiles'', so no statistics are available when reading from a ``savefile''. @@ -82,7 +82,7 @@ no packets were dropped by the interface, or it might mean that the statistic is unavailable, so it should not be treated as an indication that the interface did not drop any packets. .SH RETURN VALUE -.B pcap_stats() +.BR pcap_stats () returns 0 on success and returns .B PCAP_ERROR if there is an error or if |