summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Miller <dmiller@nmap.org>2018-08-24 23:55:03 -0500
committerDaniel Miller <dmiller@nmap.org>2018-08-24 23:55:03 -0500
commitabf508853752e3a79b8a99bdfeb929b94a490dce (patch)
tree46da4bad2573c967fa515c72a7d4e45fea6c9957
parenta1da610c66cf72e0b66483aabee4687a2d8c166f (diff)
downloadlibpcap-abf508853752e3a79b8a99bdfeb929b94a490dce.tar.gz
Fix manpage reference formatting to be consistent.
All manpage references such as pcap_create(3PCAP) will now be formatted with the identifier (e.g. "pcap_create") in **bold** and the section name (e.g. "(3PCAP)") in roman (default) face. This is how most manpages seem to be formatted and makes things more consistent.
-rw-r--r--pcap.3pcap.in8
-rw-r--r--pcap_activate.3pcap10
-rw-r--r--pcap_breakloop.3pcap6
-rw-r--r--pcap_can_set_rfmon.3pcap12
-rw-r--r--pcap_close.3pcap2
-rw-r--r--pcap_compile.3pcap.in8
-rw-r--r--pcap_create.3pcap4
-rw-r--r--pcap_datalink.3pcap.in7
-rw-r--r--pcap_datalink_name_to_val.3pcap2
-rw-r--r--pcap_dump.3pcap8
-rw-r--r--pcap_dump_close.3pcap4
-rw-r--r--pcap_dump_file.3pcap4
-rw-r--r--pcap_dump_flush.3pcap5
-rw-r--r--pcap_dump_ftell.3pcap6
-rw-r--r--pcap_dump_open.3pcap.in22
-rw-r--r--pcap_file.3pcap12
-rw-r--r--pcap_fileno.3pcap14
-rw-r--r--pcap_findalldevs.3pcap10
-rw-r--r--pcap_freecode.3pcap6
-rw-r--r--pcap_get_required_select_timeout.3pcap24
-rw-r--r--pcap_get_selectable_fd.3pcap19
-rw-r--r--pcap_get_tstamp_precision.3pcap.in6
-rw-r--r--pcap_geterr.3pcap2
-rw-r--r--pcap_inject.3pcap8
-rw-r--r--pcap_is_swapped.3pcap6
-rw-r--r--pcap_lib_version.3pcap2
-rw-r--r--pcap_list_datalinks.3pcap.in14
-rw-r--r--pcap_list_tstamp_types.3pcap.in9
-rw-r--r--pcap_lookupdev.3pcap10
-rw-r--r--pcap_lookupnet.3pcap2
-rw-r--r--pcap_loop.3pcap12
-rw-r--r--pcap_major_version.3pcap2
-rw-r--r--pcap_next_ex.3pcap14
-rw-r--r--pcap_offline_filter.3pcap4
-rw-r--r--pcap_open_dead.3pcap.in11
-rw-r--r--pcap_open_live.3pcap3
-rw-r--r--pcap_open_offline.3pcap.in3
-rw-r--r--pcap_set_buffer_size.3pcap4
-rw-r--r--pcap_set_datalink.3pcap7
-rw-r--r--pcap_set_immediate_mode.3pcap.in16
-rw-r--r--pcap_set_promisc.3pcap4
-rw-r--r--pcap_set_protocol_linux.3pcap6
-rw-r--r--pcap_set_rfmon.3pcap6
-rw-r--r--pcap_set_snaplen.3pcap4
-rw-r--r--pcap_set_timeout.3pcap5
-rw-r--r--pcap_set_tstamp_precision.3pcap.in10
-rw-r--r--pcap_set_tstamp_type.3pcap.in10
-rw-r--r--pcap_setdirection.3pcap6
-rw-r--r--pcap_setfilter.3pcap8
-rw-r--r--pcap_setnonblock.3pcap14
-rw-r--r--pcap_snapshot.3pcap10
-rw-r--r--pcap_stats.3pcap6
-rw-r--r--pcap_statustostr.3pcap2
-rw-r--r--pcap_strerror.3pcap2
-rw-r--r--pcap_tstamp_type_name_to_val.3pcap3
-rw-r--r--pcap_tstamp_type_val_to_name.3pcap3
56 files changed, 233 insertions, 194 deletions
diff --git a/pcap.3pcap.in b/pcap.3pcap.in
index a2c050d6..677e93b6 100644
--- a/pcap.3pcap.in
+++ b/pcap.3pcap.in
@@ -958,8 +958,12 @@ use an
script or some other configuration script to check whether the libpcap
1.0 APIs are available and use them only if they are.
.SH SEE ALSO
-autoconf(1), tcpdump(1), tcpslice(1), pcap-filter(@MAN_MISC_INFO@), pfconfig(8),
-usermod(@MAN_ADMIN_COMMANDS@)
+.BR autoconf (1),
+.BR tcpdump (1),
+.BR tcpslice (1),
+.BR pcap-filter (@MAN_MISC_INFO@),
+.BR pfconfig (8),
+.BR usermod (@MAN_ADMIN_COMMANDS@)
.SH AUTHORS
The original authors of libpcap are:
.LP
diff --git a/pcap_activate.3pcap b/pcap_activate.3pcap
index 162a9293..44c808e8 100644
--- a/pcap_activate.3pcap
+++ b/pcap_activate.3pcap
@@ -50,15 +50,15 @@ promiscuous mode.
.TP
.B PCAP_WARNING_TSTAMP_TYPE_NOTSUP
The time stamp type specified in a previous
-.B pcap_set_tstamp_type(3PCAP)
+.BR pcap_set_tstamp_type (3PCAP)
call isn't supported by the capture source (the time stamp type is
left as the default),
.TP
.B PCAP_WARNING
Another warning condition occurred;
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display a message describing the warning
@@ -115,8 +115,8 @@ Additional warning and error codes may be added in the future; a program
should check for positive, negative, and zero return codes, and treat
all positive return codes as warnings and all negative return
codes as errors.
-.B pcap_statustostr(3PCAP)
+.BR pcap_statustostr (3PCAP)
can be called, with a warning or error code as an argument, to fetch a
message describing the warning or error code.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_breakloop.3pcap b/pcap_breakloop.3pcap
index cc000d2e..75560187 100644
--- a/pcap_breakloop.3pcap
+++ b/pcap_breakloop.3pcap
@@ -33,9 +33,9 @@ void pcap_breakloop(pcap_t *);
.SH DESCRIPTION
.B pcap_breakloop()
sets a flag that will force
-.B pcap_dispatch(3PCAP)
+.BR pcap_dispatch (3PCAP)
or
-.B pcap_loop(3PCAP)
+.BR pcap_loop (3PCAP)
to return rather than looping; they will return the number of packets
that have been processed so far, or
.B PCAP_ERROR_BREAK
@@ -112,4 +112,4 @@ subsequent call will return
.B PCAP_ERROR_BREAK
and clear the flag.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_can_set_rfmon.3pcap b/pcap_can_set_rfmon.3pcap
index 0baac7a6..ea9f9ab3 100644
--- a/pcap_can_set_rfmon.3pcap
+++ b/pcap_can_set_rfmon.3pcap
@@ -54,9 +54,9 @@ The capture handle has already been activated.
.TP
.B PCAP_ERROR
Another error occurred.
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B \%pcap_perror(3PCAP)
+.BR \%pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display a message describing the error.
@@ -64,9 +64,11 @@ as an argument to fetch or display a message describing the error.
Additional error codes may be added in the future; a program should
check for 0, 1, and negative, return codes, and treat all negative
return codes as errors.
-.B pcap_statustostr(3PCAP)
+.BR pcap_statustostr (3PCAP)
can be called, with a warning or error code as an argument, to fetch a
message describing the warning or error code.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
-pcap_set_rfmon(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP),
+.BR pcap_set_rfmon (3PCAP)
diff --git a/pcap_close.3pcap b/pcap_close.3pcap
index e2316a41..72495f88 100644
--- a/pcap_close.3pcap
+++ b/pcap_close.3pcap
@@ -36,4 +36,4 @@ closes the files associated with
.I p
and deallocates resources.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_compile.3pcap.in b/pcap_compile.3pcap.in
index 824f52b3..ba479e21 100644
--- a/pcap_compile.3pcap.in
+++ b/pcap_compile.3pcap.in
@@ -74,9 +74,9 @@ returns 0 on success and
on failure. If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
@@ -86,4 +86,6 @@ The
.B PCAP_NETMASK_UNKNOWN
constant became available in libpcap release 1.1.0.
.SH SEE ALSO
-pcap(3PCAP), pcap_setfilter(3PCAP), pcap_freecode(3PCAP),
+.BR pcap (3PCAP),
+.BR pcap_setfilter (3PCAP),
+.BR pcap_freecode (3PCAP)
diff --git a/pcap_create.3pcap b/pcap_create.3pcap
index 5a15007b..6b520306 100644
--- a/pcap_create.3pcap
+++ b/pcap_create.3pcap
@@ -48,7 +48,7 @@ argument of "any" or
can be used to capture packets from all interfaces.
.PP
The returned handle must be activated with
-.B pcap_activate(3PCAP)
+.BR pcap_activate (3PCAP)
before packets can be captured
with it; options for the capture, such as promiscuous mode, can be set
on the handle before activating it.
@@ -69,4 +69,4 @@ is assumed to be able to hold at least
.B PCAP_ERRBUF_SIZE
chars.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_datalink.3pcap.in b/pcap_datalink.3pcap.in
index 26203683..d7077ff2 100644
--- a/pcap_datalink.3pcap.in
+++ b/pcap_datalink.3pcap.in
@@ -37,9 +37,9 @@ specified by
.IR p .
.PP
It must not be called on a pcap descriptor created by
-.B \%pcap_create(3PCAP)
+.BR \%pcap_create (3PCAP)
that has not yet been activated by
-.BR \%pcap_activate(3PCAP) .
+.BR \%pcap_activate (3PCAP).
.PP
.I https://www.tcpdump.org/linktypes.html
lists the values
@@ -65,4 +65,5 @@ returns the link-layer header type on success and
.B PCAP_ERROR_NOT_ACTIVATED
if called on a capture handle that has been created but not activated.
.SH SEE ALSO
-pcap(3PCAP), pcap-linktype(@MAN_MISC_INFO@)
+.BR pcap (3PCAP),
+.BR pcap-linktype (@MAN_MISC_INFO@)
diff --git a/pcap_datalink_name_to_val.3pcap b/pcap_datalink_name_to_val.3pcap
index dd4688f0..00448633 100644
--- a/pcap_datalink_name_to_val.3pcap
+++ b/pcap_datalink_name_to_val.3pcap
@@ -46,4 +46,4 @@ returns the type value on success and
if the name is not a known
type name..
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_dump.3pcap b/pcap_dump.3pcap
index 7f201b7c..7e974218 100644
--- a/pcap_dump.3pcap
+++ b/pcap_dump.3pcap
@@ -35,11 +35,11 @@ u_char *sp);
.SH DESCRIPTION
.B pcap_dump()
outputs a packet to the ``savefile'' opened with
-.BR pcap_dump_open(3PCAP) .
+.BR pcap_dump_open (3PCAP).
Note that its calling arguments are suitable for use with
-.B pcap_dispatch(3PCAP)
+.BR pcap_dispatch (3PCAP)
or
-.BR pcap_loop(3PCAP) .
+.BR pcap_loop (3PCAP).
If called directly, the
.I user
parameter is of type
@@ -47,4 +47,4 @@ parameter is of type
as returned by
.BR pcap_dump_open() .
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_dump_close.3pcap b/pcap_dump_close.3pcap
index bd95a52b..dbe2c926 100644
--- a/pcap_dump_close.3pcap
+++ b/pcap_dump_close.3pcap
@@ -34,4 +34,6 @@ void pcap_dump_close(pcap_dumper_t *p);
.B pcap_dump_close()
closes the ``savefile.''
.SH SEE ALSO
-pcap(3PCAP), pcap_dump_open(3PCAP), pcap_dump(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_dump_open (3PCAP),
+.BR pcap_dump (3PCAP)
diff --git a/pcap_dump_file.3pcap b/pcap_dump_file.3pcap
index d2074312..639269a8 100644
--- a/pcap_dump_file.3pcap
+++ b/pcap_dump_file.3pcap
@@ -33,6 +33,6 @@ FILE *pcap_dump_file(pcap_dumper_t *p);
.SH DESCRIPTION
.B pcap_dump_file()
returns the standard I/O stream of the ``savefile'' opened by
-.BR pcap_dump_open(3PCAP) .
+.BR pcap_dump_open (3PCAP).
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_dump_flush.3pcap b/pcap_dump_flush.3pcap
index 5d174745..142e786f 100644
--- a/pcap_dump_flush.3pcap
+++ b/pcap_dump_flush.3pcap
@@ -34,7 +34,7 @@ int pcap_dump_flush(pcap_dumper_t *p);
.B pcap_dump_flush()
flushes the output buffer to the ``savefile,'' so that any packets
written with
-.B pcap_dump(3PCAP)
+.BR pcap_dump (3PCAP)
but not yet written to the ``savefile'' will be written.
.SH RETURN VALUE
.B pcap_dump_flush()
@@ -42,4 +42,5 @@ returns 0 on success and
.B PCAP_ERROR
on failure.
.SH SEE ALSO
-pcap(3PCAP), pcap_dump_open(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_dump_open (3PCAP)
diff --git a/pcap_dump_ftell.3pcap b/pcap_dump_ftell.3pcap
index 20cb995e..253761b5 100644
--- a/pcap_dump_ftell.3pcap
+++ b/pcap_dump_ftell.3pcap
@@ -36,9 +36,9 @@ int64_t pcap_dump_ftell64(pcap_dumper_t *p);
.B pcap_dump_ftell()
returns the current file position for the ``savefile'', representing the
number of bytes written by
-.B pcap_dump_open(3PCAP)
+.BR pcap_dump_open (3PCAP)
and
-.BR pcap_dump(3PCAP) .
+.BR pcap_dump (3PCAP).
.B PCAP_ERROR
is returned on error. If the current file position does not fit in a
.BR long ,
@@ -55,4 +55,4 @@ are supported, this will return the file offset without truncation.
.B PCAP_ERROR
is returned on error.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_dump_open.3pcap.in b/pcap_dump_open.3pcap.in
index b86696f0..efb0549d 100644
--- a/pcap_dump_open.3pcap.in
+++ b/pcap_dump_open.3pcap.in
@@ -50,19 +50,19 @@ for
is called to write data to an existing open stream
.IR fp ;
this stream will be closed by a subsequent call to
-.BR pcap_dump_close(3PCAP) .
+.BR pcap_dump_close (3PCAP).
Note that on Windows, that stream should be opened in binary mode.
.PP
.I p
is a capture or ``savefile'' handle returned by an earlier call to
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
and activated by an earlier call to
-.BR \%pcap_activate(3PCAP) ,
+.BR \%pcap_activate (3PCAP),
or returned by an earlier call to
-.BR \%pcap_open_offline(3PCAP) ,
-.BR pcap_open_live(3PCAP) ,
+.BR \%pcap_open_offline (3PCAP),
+.BR pcap_open_live (3PCAP),
or
-.BR pcap_open_dead(3PCAP) .
+.BR pcap_open_dead (3PCAP).
The time stamp precision, link-layer type, and snapshot length from
.I p
are used as the link-layer type and snapshot length of the output file.
@@ -80,16 +80,16 @@ it will write new packets at the end of the file.
A pointer to a
.B pcap_dumper_t
structure to use in subsequent
-.B pcap_dump(3PCAP)
+.BR pcap_dump (3PCAP)
and
-.B pcap_dump_close(3PCAP)
+.BR pcap_dump_close (3PCAP)
calls is returned on success.
.B NULL
is returned on failure.
If
.B NULL
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
can be used to get the error text.
.SH BACKWARD COMPATIBILITY
.PP
@@ -99,5 +99,5 @@ function became available in libpcap release 1.7.2. In previous
releases, there is no support for appending packets to an existing
savefile.
.SH SEE ALSO
-pcap(3PCAP),
-\%pcap-savefile(@MAN_FILE_FORMATS@)
+.BR pcap (3PCAP),
+.BR \%pcap-savefile (@MAN_FILE_FORMATS@)
diff --git a/pcap_file.3pcap b/pcap_file.3pcap
index 981451ba..45b04148 100644
--- a/pcap_file.3pcap
+++ b/pcap_file.3pcap
@@ -34,15 +34,15 @@ FILE *pcap_file(pcap_t *p);
.B pcap_file()
returns the standard I/O stream of the ``savefile,'' if a ``savefile''
was opened with
-.BR pcap_open_offline(3PCAP) ,
+.BR pcap_open_offline (3PCAP),
or
.BR NULL ,
if a network device was opened with
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
and
-.BR \%pcap_activate(3PCAP) ,
+.BR \%pcap_activate (3PCAP),
or with
-.BR pcap_open_live(3PCAP) .
+.BR pcap_open_live (3PCAP).
.PP
Note that the Packet Capture library is usually built with large file
support, so the standard I/O stream of the ``savefile'' might refer to
@@ -52,8 +52,8 @@ should, if possible, use calls that support large files on the return
value of
.B pcap_file()
or the value returned by
-.B fileno(3)
+.BR fileno (3)
when passed the return value of
.BR pcap_file() .
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_fileno.3pcap b/pcap_fileno.3pcap
index 60ac1294..f47dcadf 100644
--- a/pcap_fileno.3pcap
+++ b/pcap_fileno.3pcap
@@ -35,24 +35,24 @@ If
.I p
refers to a network device that was opened for a live capture using
a combination of
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
and
-.BR pcap_activate(3PCAP) ,
+.BR pcap_activate (3PCAP),
or using
-.BR pcap_open_live(3PCAP) ,
+.BR pcap_open_live (3PCAP),
.B pcap_fileno()
returns the file descriptor from which captured packets are read.
.LP
If
.I p
refers to a ``savefile'' that was opened using functions such as
-.BR pcap_open_offline(3PCAP)
+.BR pcap_open_offline (3PCAP)
or
-.BR pcap_fopen_offline(3PCAP) ,
+.BR pcap_fopen_offline (3PCAP),
a ``dead''
.B pcap_t
opened using
-.BR pcap_open_dead(3PCAP) ,
+.BR pcap_open_dead (3PCAP),
or a
.B pcap_t
that was created with
@@ -62,4 +62,4 @@ but that has not yet been activated with
it returns
.BR PCAP_ERROR .
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_findalldevs.3pcap b/pcap_findalldevs.3pcap
index 712e255a..eb8472ab 100644
--- a/pcap_findalldevs.3pcap
+++ b/pcap_findalldevs.3pcap
@@ -40,11 +40,11 @@ void pcap_freealldevs(pcap_if_t *alldevs);
.SH DESCRIPTION
.B pcap_findalldevs()
constructs a list of network devices that can be opened with
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
and
-.B pcap_activate(3PCAP)
+.BR pcap_activate (3PCAP)
or with
-.BR pcap_open_live(3PCAP) .
+.BR pcap_open_live (3PCAP).
(Note that there may be network devices that cannot be opened by the
process calling
.BR pcap_findalldevs() ,
@@ -194,7 +194,7 @@ for IPv6 addresses, it can be interpreted as if it pointed to a
.BR "struct sockaddr_in6".
.PP
The list of devices must be freed with
-.BR pcap_freealldevs(3PCAP) ,
+.BR pcap_freealldevs (3PCAP),
which frees the list pointed to by
.IR alldevs .
.SH RETURN VALUE
@@ -228,4 +228,4 @@ and
.B PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
constants became available in libpcap release 1.9.0.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_freecode.3pcap b/pcap_freecode.3pcap
index 4e71efa4..21330c48 100644
--- a/pcap_freecode.3pcap
+++ b/pcap_freecode.3pcap
@@ -35,9 +35,9 @@ void pcap_freecode(struct bpf_program *);
is used to free up allocated memory pointed to by a
.I bpf_program
struct generated by
-.B pcap_compile(3PCAP)
+.BR pcap_compile (3PCAP)
when that BPF program is no longer needed, for example after it
has been made the filter program for a pcap structure by a call to
-.BR pcap_setfilter(3PCAP) .
+.BR pcap_setfilter (3PCAP).
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_get_required_select_timeout.3pcap b/pcap_get_required_select_timeout.3pcap
index e58cb4e7..55e0b99b 100644
--- a/pcap_get_required_select_timeout.3pcap
+++ b/pcap_get_required_select_timeout.3pcap
@@ -36,13 +36,13 @@ struct timeval *pcap_get_required_select_timeout(pcap_t *p);
returns, on UNIX, a pointer to a
.B struct timeval
containing a value that must be used as the minimum timeout in
-.BR select(2) ,
-.BR poll(2) ,
-.BR epoll_wait(2) ,
+.BR select (2),
+.BR poll (2),
+.BR epoll_wait (2),
and
-.B kevent()
+.BR kevent (2)
calls if
-.B pcap_get_selectable_fd(3PCAP)
+.BR pcap_get_selectable_fd (3PCAP)
returns
.BR PCAP_ERROR .
.PP
@@ -56,7 +56,7 @@ The device for which
returned
.B PCAP_ERROR
must be put in non-blocking mode with
-.BR pcap_setnonblock(3PCAP) ,
+.BR pcap_setnonblock (3PCAP),
and an attempt must always be made to read packets from the device
when the
.BR select() ,
@@ -69,9 +69,9 @@ call returns.
Note that a device on which a read can be done without blocking may,
on some platforms, not have any packets to read if the packet buffer
timeout has expired. A call to
-.B pcap_dispatch(3PCAP)
+.BR pcap_dispatch (3PCAP)
or
-.B pcap_next_ex(3PCAP)
+.BR pcap_next_ex (3PCAP)
will return 0 in this case, but will not block.
.PP
.B pcap_get_required_select_timeout()
@@ -94,5 +94,9 @@ cannot be used on any capture source for which
.B pcap_get_selectable_fd
returns \-1.
.SH SEE ALSO
-pcap(3PCAP), pcap_get_selectable_fd(3PCAP), select(2), poll(2),
-epoll_wait(2), kqueue(2)
+.BR pcap (3PCAP),
+.BR pcap_get_selectable_fd (3PCAP),
+.BR select (2),
+.BR poll (2),
+.BR epoll_wait (2),
+.BR kqueue (2)
diff --git a/pcap_get_selectable_fd.3pcap b/pcap_get_selectable_fd.3pcap
index 7f43db39..cc2515cd 100644
--- a/pcap_get_selectable_fd.3pcap
+++ b/pcap_get_selectable_fd.3pcap
@@ -36,10 +36,10 @@ int pcap_get_selectable_fd(pcap_t *p);
returns, on UNIX, a file descriptor number for a file descriptor on
which one can
do a
-.BR select(2) ,
-.BR poll(2) ,
-.BR epoll_wait(2) ,
-.BR kevent() ,
+.BR select (2),
+.BR poll (2),
+.BR epoll_wait (2),
+.BR kevent (2),
or other such call
to wait for it to be possible to read packets without blocking, if such
a descriptor exists, or
@@ -47,7 +47,7 @@ a descriptor exists, or
if no such descriptor exists.
.PP
Some network devices opened with
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
and
.BR pcap_activate(3PCAP) ,
or with
@@ -58,7 +58,7 @@ FreeBSD 4.3 and 4.4, and Endace DAG devices), so
is returned for
those devices. In that case, those calls must be given a timeout less
than or equal to the timeout returned by
-.B pcap_get_required_select_timeout(3PCAP)
+.BR pcap_get_required_select_timeout (3PCAP)
for the device for which
.B pcap_get_selectable_fd()
returned
@@ -76,9 +76,9 @@ event loop.
Note that a device on which a read can be done without blocking may,
on some platforms, not have any packets to read if the packet buffer
timeout has expired. A call to
-.B pcap_dispatch(3PCAP)
+.BR pcap_dispatch (3PCAP)
or
-.B pcap_next_ex(3PCAP)
+.BR pcap_next_ex (3PCAP)
will return 0 in this case, but will not block.
.PP
Note that in:
@@ -148,4 +148,5 @@ A selectable file descriptor is returned if one exists; otherwise,
.B PCAP_ERROR
is returned.
.SH SEE ALSO
-pcap(3PCAP), kqueue(2)
+.BR pcap (3PCAP),
+.BR kqueue (2)
diff --git a/pcap_get_tstamp_precision.3pcap.in b/pcap_get_tstamp_precision.3pcap.in
index 2e72e0ba..d45db69f 100644
--- a/pcap_get_tstamp_precision.3pcap.in
+++ b/pcap_get_tstamp_precision.3pcap.in
@@ -51,6 +51,6 @@ This function became available in libpcap release 1.5.1. In previous
releases, time stamps from a capture device or savefile are always given
in seconds and microseconds.
.SH SEE ALSO
-pcap(3PCAP),
-pcap_set_tstamp_precision(3PCAP),
-pcap-tstamp(@MAN_MISC_INFO@)
+.BR pcap (3PCAP),
+.BR pcap_set_tstamp_precision (3PCAP),
+.BR pcap-tstamp (@MAN_MISC_INFO@)
diff --git a/pcap_geterr.3pcap b/pcap_geterr.3pcap
index ee681c8c..7a7a6be3 100644
--- a/pcap_geterr.3pcap
+++ b/pcap_geterr.3pcap
@@ -48,4 +48,4 @@ prints the text of the last pcap library error on
prefixed by
.IR prefix .
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_inject.3pcap b/pcap_inject.3pcap
index 92a92638..2876dbeb 100644
--- a/pcap_inject.3pcap
+++ b/pcap_inject.3pcap
@@ -42,7 +42,7 @@ is the number of bytes in the packet.
Note that, even if you successfully open the network interface, you
might not have permission to send packets on it, or it might not support
sending packets; as
-.B pcap_open_live(3PCAP)
+.BR pcap_open_live (3PCAP)
doesn't have a flag to indicate whether to open for capturing, sending,
or capturing and sending, you cannot request an open that supports
sending and be notified at open time whether sending will be possible.
@@ -84,11 +84,11 @@ on failure.
If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_is_swapped.3pcap b/pcap_is_swapped.3pcap
index 67f762fe..8889a9c2 100644
--- a/pcap_is_swapped.3pcap
+++ b/pcap_is_swapped.3pcap
@@ -39,13 +39,13 @@ than the current system. For a live capture, it always returns false
(0).
.PP
It must not be called on a pcap descriptor created by
-.B \%pcap_create(3PCAP)
+.BR \%pcap_create (3PCAP)
that has not yet been activated by
-.BR \%pcap_activate(3PCAP) .
+.BR \%pcap_activate (3PCAP).
.SH RETURN VALUE
.B pcap_is_swapped()
returns true (1) or false (0) on success and
.B PCAP_ERROR_NOT_ACTIVATED
if called on a capture handle that has been created but not activated.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_lib_version.3pcap b/pcap_lib_version.3pcap
index 4b86b2d5..cd1b9472 100644
--- a/pcap_lib_version.3pcap
+++ b/pcap_lib_version.3pcap
@@ -36,4 +36,4 @@ returns a pointer to a string giving information about the version of
the libpcap library being used; note that it contains more information
than just a version number.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_list_datalinks.3pcap.in b/pcap_list_datalinks.3pcap.in
index 60ba478f..8e212e1f 100644
--- a/pcap_list_datalinks.3pcap.in
+++ b/pcap_list_datalinks.3pcap.in
@@ -47,9 +47,9 @@ which frees the list of link-layer header types pointed to by
.IR dlt_list .
.LP
It must not be called on a pcap descriptor created by
-.B \%pcap_create(3PCAP)
+.BR \%pcap_create (3PCAP)
that has not yet been activated by
-.BR \%pcap_activate(3PCAP) .
+.BR \%pcap_activate (3PCAP).
.SH RETURN VALUE
.B pcap_list_datalinks()
returns the number of link-layer header types in the array on success,
@@ -61,13 +61,13 @@ on other errors.
If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B \%pcap_perror(3PCAP)
+.BR \%pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP),
-pcap_datalink_val_to_name(3PCAP),
-pcap-linktype(@MAN_MISC_INFO@)
+.BR pcap (3PCAP),
+.BR pcap_datalink_val_to_name (3PCAP),
+.BR pcap-linktype (@MAN_MISC_INFO@)
diff --git a/pcap_list_tstamp_types.3pcap.in b/pcap_list_tstamp_types.3pcap.in
index 4deff794..ee297cf8 100644
--- a/pcap_list_tstamp_types.3pcap.in
+++ b/pcap_list_tstamp_types.3pcap.in
@@ -59,9 +59,9 @@ you are limited to the capture device's default time stamp type.
If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
@@ -71,5 +71,6 @@ These functions became available in libpcap release 1.2.1. In previous
releases, the time stamp type cannot be set; only the default time stamp
type offered by a capture source is available.
.SH SEE ALSO
-pcap(3PCAP), pcap_tstamp_type_val_to_name(3PCAP),
-pcap-tstamp(@MAN_MISC_INFO@)
+.BR pcap (3PCAP),
+.BR pcap_tstamp_type_val_to_name (3PCAP),
+.BR pcap-tstamp (@MAN_MISC_INFO@)
diff --git a/pcap_lookupdev.3pcap b/pcap_lookupdev.3pcap
index 29f09e37..0c0d9a8d 100644
--- a/pcap_lookupdev.3pcap
+++ b/pcap_lookupdev.3pcap
@@ -47,13 +47,13 @@ possible.)
.B pcap_lookupdev()
returns a pointer to a string giving the name of a network device
suitable for use with
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
and
-.BR \%pcap_activate(3PCAP) ,
+.BR \%pcap_activate (3PCAP),
or with
-.BR pcap_open_live(3PCAP) ,
+.BR pcap_open_live (3PCAP),
and with
-.BR pcap_lookupnet(3PCAP) .
+.BR pcap_lookupnet (3PCAP).
If there is an error,
.B NULL
is returned and
@@ -64,7 +64,7 @@ is assumed to be able to hold at least
.B PCAP_ERRBUF_SIZE
chars.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
.SH BUGS
The pointer returned by
.B pcap_lookupdev()
diff --git a/pcap_lookupnet.3pcap b/pcap_lookupnet.3pcap
index f6094453..122ba53e 100644
--- a/pcap_lookupnet.3pcap
+++ b/pcap_lookupnet.3pcap
@@ -63,4 +63,4 @@ is assumed to be able to hold at least
.B PCAP_ERRBUF_SIZE
chars.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_loop.3pcap b/pcap_loop.3pcap
index 0193714b..d535b0d0 100644
--- a/pcap_loop.3pcap
+++ b/pcap_loop.3pcap
@@ -47,7 +47,7 @@ processes packets from a live capture or ``savefile'' until
.I cnt
packets are processed, the end of the ``savefile'' is
reached when reading from a ``savefile'',
-.B pcap_breakloop(3PCAP)
+.BR pcap_breakloop (3PCAP)
is called, or an error occurs.
It does
.B not
@@ -123,7 +123,7 @@ them.
.PP
The bytes of data from the packet begin with a link-layer header. The
format of the link-layer header is indicated by the return value of the
-.B pcap_datalink(3PCAP)
+.BR pcap_datalink (3PCAP)
routine when handed the
.B pcap_t
value also passed to
@@ -136,7 +136,7 @@ lists the values
can return and describes the packet formats that
correspond to those values. The value it returns will be valid for all
packets received unless and until
-.B pcap_set_datalink(3PCAP)
+.BR pcap_set_datalink (3PCAP)
is called; after a successful call to
.BR pcap_set_datalink() ,
all subsequent packets will have a link-layer header of the type
@@ -196,11 +196,11 @@ rather than just checking for a return value < 0.
If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_major_version.3pcap b/pcap_major_version.3pcap
index 2fedfd2d..ef04907e 100644
--- a/pcap_major_version.3pcap
+++ b/pcap_major_version.3pcap
@@ -51,4 +51,4 @@ and
.B pcap_minor_version()
are not meaningful.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_next_ex.3pcap b/pcap_next_ex.3pcap
index f0eb82d1..8227ea65 100644
--- a/pcap_next_ex.3pcap
+++ b/pcap_next_ex.3pcap
@@ -49,9 +49,9 @@ and the packet data are not to be freed by the caller, and are not
guaranteed to be valid after the next call to
.BR pcap_next_ex() ,
.BR pcap_next() ,
-.BR pcap_loop(3PCAP) ,
+.BR pcap_loop (3PCAP),
or
-.BR pcap_dispatch(3PCAP) ;
+.BR pcap_dispatch (3PCAP);
if the code needs them to remain valid, it must make a copy of them.
.PP
.B pcap_next()
@@ -78,7 +78,7 @@ is filled in with the appropriate values for the packet.
.PP
The bytes of data from the packet begin with a link-layer header. The
format of the link-layer header is indicated by the return value of the
-.B pcap_datalink(PCAP)
+.BR pcap_datalink (3PCAP)
routine when handed the
.B pcap_t
value also passed to
@@ -91,7 +91,7 @@ lists the values
can return and describes the packet formats that
correspond to those values. The value it returns will be valid for all
packets received unless and until
-.B pcap_set_datalink(3PCAP)
+.BR pcap_set_datalink (3PCAP)
is called; after a successful call to
.BR pcap_set_datalink() ,
all subsequent packets will have a link-layer header of the type
@@ -122,9 +122,9 @@ are being read from a ``savefile'' and there are no more packets to read
from the savefile. If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
@@ -141,4 +141,4 @@ non-blocking mode and no packets were available to be read), or if no
more packets are available in a ``savefile.'' Unfortunately, there is no
way to determine whether an error occurred or not.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_offline_filter.3pcap b/pcap_offline_filter.3pcap
index 724f8366..418ad82e 100644
--- a/pcap_offline_filter.3pcap
+++ b/pcap_offline_filter.3pcap
@@ -39,7 +39,7 @@ checks whether a filter matches a packet.
is a pointer to a
.I bpf_program
struct, usually the result of a call to
-.BR pcap_compile(3PCAP) .
+.BR pcap_compile (3PCAP).
.I h
points to the
.I pcap_pkthdr
@@ -52,4 +52,4 @@ returns the return value of the filter program. This will be zero if
the packet doesn't match the filter and non-zero if the packet matches
the filter.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_open_dead.3pcap.in b/pcap_open_dead.3pcap.in
index 97a97f3a..7d1b4ec3 100644
--- a/pcap_open_dead.3pcap.in
+++ b/pcap_open_dead.3pcap.in
@@ -43,10 +43,10 @@ are used for creating a
structure to use when calling the other functions in libpcap. It is
typically used when just using libpcap for compiling BPF code; it can
also be used if using
-.BR pcap_dump_open(3PCAP) ,
-.BR pcap_dump(3PCAP) ,
+.BR pcap_dump_open (3PCAP),
+.BR pcap_dump (3PCAP),
and
-.B pcap_dump_close(3PCAP)
+.BR pcap_dump_close (3PCAP)
to write a savefile if there is no
.B pcap_t
that supplies the packets to be written.
@@ -73,6 +73,7 @@ seconds and microseconds, and
.B PCAP_TSTAMP_PRECISION_NANO
should be specified if the packets to be written have time stamps in
seconds and nanoseconds. Its value does not affect
-.BR pcap_compile(3PCAP) .
+.BR pcap_compile (3PCAP).
.SH SEE ALSO
-pcap(3PCAP), \%pcap-linktype(@MAN_MISC_INFO@)
+.BR pcap (3PCAP),
+.BR \%pcap-linktype (@MAN_MISC_INFO@)
diff --git a/pcap_open_live.3pcap b/pcap_open_live.3pcap
index 3286e294..81073dba 100644
--- a/pcap_open_live.3pcap
+++ b/pcap_open_live.3pcap
@@ -87,4 +87,5 @@ is assumed to be able to hold at least
.B PCAP_ERRBUF_SIZE
chars.
.SH SEE ALSO
-pcap_create(3PCAP), pcap_activate(3PCAP)
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP)
diff --git a/pcap_open_offline.3pcap.in b/pcap_open_offline.3pcap.in
index 6ad4ddbb..749bdc97 100644
--- a/pcap_open_offline.3pcap.in
+++ b/pcap_open_offline.3pcap.in
@@ -112,4 +112,5 @@ and
became available in libpcap release 1.5.1. In previous releases, time
stamps from a savefile are always given in seconds and microseconds.
.SH SEE ALSO
-pcap(3PCAP), pcap-savefile(@MAN_FILE_FORMATS@)
+.BR pcap (3PCAP),
+.BR pcap-savefile (@MAN_FILE_FORMATS@)
diff --git a/pcap_set_buffer_size.3pcap b/pcap_set_buffer_size.3pcap
index 684f739c..722f2a6a 100644
--- a/pcap_set_buffer_size.3pcap
+++ b/pcap_set_buffer_size.3pcap
@@ -42,4 +42,6 @@ returns 0 on success or
.B PCAP_ERROR_ACTIVATED
if called on a capture handle that has been activated.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP)
diff --git a/pcap_set_datalink.3pcap b/pcap_set_datalink.3pcap
index 66cfdb1e..591c4661 100644
--- a/pcap_set_datalink.3pcap
+++ b/pcap_set_datalink.3pcap
@@ -43,11 +43,12 @@ returns 0 on success and
on failure. If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP), pcap_datalink_name_to_val(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_datalink_name_to_val (3PCAP)
diff --git a/pcap_set_immediate_mode.3pcap.in b/pcap_set_immediate_mode.3pcap.in
index 2fe45c54..6ec29a29 100644
--- a/pcap_set_immediate_mode.3pcap.in
+++ b/pcap_set_immediate_mode.3pcap.in
@@ -54,11 +54,11 @@ immediate mode must be turned on with a
.B BIOCIMMEDIATE
.BR ioctl (2),
as documented in
-.BR bpf(@MAN_DEVICES@) ,
+.BR bpf (@MAN_DEVICES@),
on the descriptor returned by
-.B pcap_fileno(3PCAP),
+.BR pcap_fileno (3PCAP),
after
-.BR pcap_activate(3PCAP)
+.BR pcap_activate (3PCAP)
is called;
.IP
on Solaris 10 and earlier versions of Solaris, immediate mode must be
@@ -70,13 +70,13 @@ on Digital UNIX/Tru64 UNIX, immediate mode must be turned on by doing a
.B BIOCMBIC
.BR ioctl ,
as documented in
-.BR packetfilter(7) ,
+.BR packetfilter (7),
to clear the
.B ENBATCH
flag on the descriptor returned by
-.B pcap_fileno(3PCAP),
+.BR pcap_fileno (3PCAP),
after
-.BR pcap_activate(3PCAP)
+.BR pcap_activate (3PCAP)
is called;
.IP
on Windows, immediate mode must be turned on by calling
@@ -92,4 +92,6 @@ is available, it should be used.
.PP
On other platforms, capture devices are always in immediate mode.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP)
diff --git a/pcap_set_promisc.3pcap b/pcap_set_promisc.3pcap
index fcd797a3..4b465cb7 100644
--- a/pcap_set_promisc.3pcap
+++ b/pcap_set_promisc.3pcap
@@ -43,4 +43,6 @@ returns 0 on success or
.B PCAP_ERROR_ACTIVATED
if called on a capture handle that has been activated.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP)
diff --git a/pcap_set_protocol_linux.3pcap b/pcap_set_protocol_linux.3pcap
index 873017ba..9668a74d 100644
--- a/pcap_set_protocol_linux.3pcap
+++ b/pcap_set_protocol_linux.3pcap
@@ -48,7 +48,7 @@ other than a network interface, it will have no effect.
.LP
It should not be used in portable code; instead, a filter should be
specified with
-.BR pcap_setfilter(3PCAP) .
+.BR pcap_setfilter (3PCAP).
.LP
If a given network interface provides a standard link-layer header, with
a standard packet type, but provides some packet types with a different
@@ -65,4 +65,6 @@ if called on a capture handle that has been activated.
.SH BACKWARD COMPATIBILITY
This function became available in libpcap release 1.9.0.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP)
diff --git a/pcap_set_rfmon.3pcap b/pcap_set_rfmon.3pcap
index 691518a5..a0b292f7 100644
--- a/pcap_set_rfmon.3pcap
+++ b/pcap_set_rfmon.3pcap
@@ -43,5 +43,7 @@ returns 0 on success or
.B PCAP_ERROR_ACTIVATED
if called on a capture handle that has been activated.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
-pcap_can_set_rfmon(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP),
+.BR pcap_can_set_rfmon (3PCAP)
diff --git a/pcap_set_snaplen.3pcap b/pcap_set_snaplen.3pcap
index 44eb1548..8bf12369 100644
--- a/pcap_set_snaplen.3pcap
+++ b/pcap_set_snaplen.3pcap
@@ -41,4 +41,6 @@ returns 0 on success or
.B PCAP_ERROR_ACTIVATED
if called on a capture handle that has been activated.
.SH SEE ALSO
-pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP)
diff --git a/pcap_set_timeout.3pcap b/pcap_set_timeout.3pcap
index e67b8132..139fed4b 100644
--- a/pcap_set_timeout.3pcap
+++ b/pcap_set_timeout.3pcap
@@ -49,5 +49,6 @@ returns 0 on success or
.B PCAP_ERROR_ACTIVATED
if called on a capture handle that has been activated.
.SH SEE ALSO
-pcap_create(3PCAP), pcap_activate(3PCAP),
-\%pcap_set_immediate_mode(3PCAP)
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP),
+.BR \%pcap_set_immediate_mode (3PCAP)
diff --git a/pcap_set_tstamp_precision.3pcap.in b/pcap_set_tstamp_precision.3pcap.in
index dc2b4b3d..4a0be470 100644
--- a/pcap_set_tstamp_precision.3pcap.in
+++ b/pcap_set_tstamp_precision.3pcap.in
@@ -39,9 +39,9 @@ sets the precision of the time stamp desired for packets captured on the pcap
descriptor to the type specified by
.IR tstamp_precision .
It must be called on a pcap descriptor created by
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
that has not yet been activated by
-.BR pcap_activate(3PCAP) .
+.BR pcap_activate (3PCAP).
Two time stamp precisions are supported, microseconds and nanoseconds. One can
use options
.B PCAP_TSTAMP_PRECISION_MICRO and
@@ -61,6 +61,6 @@ This function became available in libpcap release 1.5.1. In previous
releases, time stamps from a capture device or savefile are always given
in seconds and microseconds.
.SH SEE ALSO
-pcap(3PCAP),
-pcap_get_tstamp_precision(3PCAP),
-pcap-tstamp(@MAN_MISC_INFO@)
+.BR pcap (3PCAP),
+.BR pcap_get_tstamp_precision (3PCAP),
+.BR pcap-tstamp (@MAN_MISC_INFO@)
diff --git a/pcap_set_tstamp_type.3pcap.in b/pcap_set_tstamp_type.3pcap.in
index 1834d072..88c6a842 100644
--- a/pcap_set_tstamp_type.3pcap.in
+++ b/pcap_set_tstamp_type.3pcap.in
@@ -38,10 +38,10 @@ sets the type of time stamp desired for packets captured on the pcap
descriptor to the type specified by
.IR tstamp_type .
It must be called on a pcap descriptor created by
-.B pcap_create(3PCAP)
+.BR pcap_create (3PCAP)
that has not yet been activated by
-.BR pcap_activate(3PCAP) .
-.B pcap_list_tstamp_types(3PCAP)
+.BR pcap_activate (3PCAP).
+.BR pcap_list_tstamp_types (3PCAP)
will give a list of the time stamp types supported by a given capture
device.
See
@@ -64,5 +64,5 @@ This function became available in libpcap release 1.2.1. In previous
releases, the time stamp type cannot be set; only the default time stamp
type offered by a capture source is available.
.SH SEE ALSO
-pcap(3PCAP),
-pcap_tstamp_type_name_to_val(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_tstamp_type_name_to_val (3PCAP)
diff --git a/pcap_setdirection.3pcap b/pcap_setdirection.3pcap
index f174b98f..2fde0175 100644
--- a/pcap_setdirection.3pcap
+++ b/pcap_setdirection.3pcap
@@ -62,11 +62,11 @@ returns 0 on success and
on failure. If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_setfilter.3pcap b/pcap_setfilter.3pcap
index 87296939..e3cf42a6 100644
--- a/pcap_setfilter.3pcap
+++ b/pcap_setfilter.3pcap
@@ -37,7 +37,7 @@ is used to specify a filter program.
is a pointer to a
.I bpf_program
struct, usually the result of a call to
-.BR \%pcap_compile(3PCAP) .
+.BR \%pcap_compile (3PCAP).
.SH RETURN VALUE
.B pcap_setfilter()
returns 0 on success and
@@ -45,11 +45,11 @@ returns 0 on success and
on failure. If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_setnonblock.3pcap b/pcap_setnonblock.3pcap
index e8adebea..ca9a0bd3 100644
--- a/pcap_setnonblock.3pcap
+++ b/pcap_setnonblock.3pcap
@@ -52,18 +52,18 @@ returned.
In
``non-blocking'' mode, an attempt to read from the capture descriptor
with
-.B pcap_dispatch(3PCAP)
+.BR pcap_dispatch (3PCAP)
will, if no packets are currently available to be read, return 0
immediately rather than blocking waiting for packets to arrive.
-.B pcap_loop(3PCAP)
+.BR pcap_loop (3PCAP)
and
-.B pcap_next(3PCAP)
+.BR pcap_next (3PCAP)
will not work in ``non-blocking'' mode.
.PP
When first activated with
-.B pcap_activate(3PCAP)
+.BR pcap_activate (3PCAP)
or opened with
-.B pcap_open_live(3PCAP) ,
+.BR pcap_open_live (3PCAP) ,
a capture handle is not in ``non-blocking mode''; a call to
.B pcap_setnonblock()
is required in order to put it into ``non-blocking'' mode.
@@ -82,4 +82,6 @@ is assumed to be able to hold at least
.B PCAP_ERRBUF_SIZE
chars.
.SH SEE ALSO
-pcap(3PCAP), pcap_next_ex(3PCAP), pcap_geterr(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_next_ex (3PCAP),
+.BR pcap_geterr (3PCAP)
diff --git a/pcap_snapshot.3pcap b/pcap_snapshot.3pcap
index ee54bb08..e376857f 100644
--- a/pcap_snapshot.3pcap
+++ b/pcap_snapshot.3pcap
@@ -33,20 +33,20 @@ int pcap_snapshot(pcap_t *p);
.SH DESCRIPTION
.B pcap_snapshot()
returns the snapshot length specified when
-.B pcap_set_snaplen(3PCAP)
+.BR pcap_set_snaplen (3PCAP)
or
-.B pcap_open_live(3PCAP)
+.BR pcap_open_live (3PCAP)
was called, for a live capture, or the snapshot length from the capture
file, for a ``savefile''.
.PP
It must not be called on a pcap descriptor created by
-.B \%pcap_create(3PCAP)
+.BR \%pcap_create (3PCAP)
that has not yet been activated by
-.BR \%pcap_activate(3PCAP) .
+.BR \%pcap_activate (3PCAP).
.SH RETURN VALUE
.B pcap_snapshot()
returns the snapshot length on success and
.B PCAP_ERROR_NOT_ACTIVATED
if called on a capture handle that has been created but not activated.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_stats.3pcap b/pcap_stats.3pcap
index 465dada4..e4fd210f 100644
--- a/pcap_stats.3pcap
+++ b/pcap_stats.3pcap
@@ -90,11 +90,11 @@ if there is an error or if
doesn't support packet statistics. If
.B PCAP_ERROR
is returned,
-.B pcap_geterr(3PCAP)
+.BR pcap_geterr (3PCAP)
or
-.B pcap_perror(3PCAP)
+.BR pcap_perror (3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_statustostr.3pcap b/pcap_statustostr.3pcap
index 9c2057ae..016a4d0d 100644
--- a/pcap_statustostr.3pcap
+++ b/pcap_statustostr.3pcap
@@ -38,4 +38,4 @@ or
.B PCAP_WARNING_
value returned by a libpcap routine to an error string.
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_strerror.3pcap b/pcap_strerror.3pcap
index a5775f42..784cc36c 100644
--- a/pcap_strerror.3pcap
+++ b/pcap_strerror.3pcap
@@ -37,4 +37,4 @@ is provided in case
isn't available. It returns an error message string corresponding to
.IR error .
.SH SEE ALSO
-pcap(3PCAP)
+.BR pcap (3PCAP)
diff --git a/pcap_tstamp_type_name_to_val.3pcap b/pcap_tstamp_type_name_to_val.3pcap
index fdcc6c6d..b980ba47 100644
--- a/pcap_tstamp_type_name_to_val.3pcap
+++ b/pcap_tstamp_type_name_to_val.3pcap
@@ -45,4 +45,5 @@ on failure.
.PP
This function became available in libpcap release 1.2.1.
.SH SEE ALSO
-pcap(3PCAP), pcap_tstamp_type_val_to_name(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_tstamp_type_val_to_name (3PCAP)
diff --git a/pcap_tstamp_type_val_to_name.3pcap b/pcap_tstamp_type_val_to_name.3pcap
index 9374f489..f0f76e57 100644
--- a/pcap_tstamp_type_val_to_name.3pcap
+++ b/pcap_tstamp_type_val_to_name.3pcap
@@ -49,4 +49,5 @@ is returned on failure.
.PP
These functions became available in libpcap release 1.2.1.
.SH SEE ALSO
-pcap(3PCAP), pcap_tstamp_type_name_to_val(3PCAP)
+.BR pcap (3PCAP),
+.BR pcap_tstamp_type_name_to_val (3PCAP)