aboutsummaryrefslogtreecommitdiff
path: root/pcap_findalldevs.3pcap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-11-23 20:56:35 -0800
committerGuy Harris <guy@alum.mit.edu>2019-11-23 20:56:35 -0800
commit48fbe321170f30de3e0c2aed5927aff9b0893a66 (patch)
treeca007998219e42ea1660767ff19ebd7c57d9adbb /pcap_findalldevs.3pcap
parentb262e73dfdda6599b3b08750fcd6ff2a6a5a16c0 (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_findalldevs.3pcap')
-rw-r--r--pcap_findalldevs.3pcap10
1 files changed, 5 insertions, 5 deletions
diff --git a/pcap_findalldevs.3pcap b/pcap_findalldevs.3pcap
index eb8472ab..5cd39072 100644
--- a/pcap_findalldevs.3pcap
+++ b/pcap_findalldevs.3pcap
@@ -38,7 +38,7 @@ void pcap_freealldevs(pcap_if_t *alldevs);
.ft
.fi
.SH DESCRIPTION
-.B pcap_findalldevs()
+.BR pcap_findalldevs ()
constructs a list of network devices that can be opened with
.BR pcap_create (3PCAP)
and
@@ -47,12 +47,12 @@ or with
.BR pcap_open_live (3PCAP).
(Note that there may be network devices that cannot be opened by the
process calling
-.BR pcap_findalldevs() ,
+.BR pcap_findalldevs (),
because, for example, that process does not have sufficient privileges
to open them for capturing; if so, those devices will not appear on the
list.)
If
-.B pcap_findalldevs()
+.BR pcap_findalldevs ()
succeeds, the pointer pointed to by
.I alldevsp
is set to point to the first element of the list, or to
@@ -72,7 +72,7 @@ for the last element of the list
.TP
.B name
a pointer to a string giving a name for the device to pass to
-.B pcap_open_live()
+.BR pcap_open_live ()
.TP
.B description
if not
@@ -198,7 +198,7 @@ The list of devices must be freed with
which frees the list pointed to by
.IR alldevs .
.SH RETURN VALUE
-.B pcap_findalldevs()
+.BR pcap_findalldevs ()
returns 0 on success and
.B PCAP_ERROR
on failure; as indicated, finding no