Refine references in some man pages, round 4.
[skip ci]
diff --git a/pcap_set_protocol_linux.3pcap b/pcap_set_protocol_linux.3pcap
index 40eb8d2..1cbe428 100644
--- a/pcap_set_protocol_linux.3pcap
+++ b/pcap_set_protocol_linux.3pcap
@@ -48,7 +48,7 @@
.LP
It should not be used in portable code; instead, a filter should be
specified with
-.BR pcap_setfilter() .
+.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
@@ -63,5 +63,4 @@
.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), socket(2),
-pcap_setfilter(3PCAP)
+pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
diff --git a/pcap_set_timeout.3pcap b/pcap_set_timeout.3pcap
index cacf603..e67b813 100644
--- a/pcap_set_timeout.3pcap
+++ b/pcap_set_timeout.3pcap
@@ -49,5 +49,5 @@
.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_create(3PCAP), pcap_activate(3PCAP),
\%pcap_set_immediate_mode(3PCAP)
diff --git a/pcap_set_tstamp_precision.3pcap.in b/pcap_set_tstamp_precision.3pcap.in
index 57c4ea3..b4588f5 100644
--- a/pcap_set_tstamp_precision.3pcap.in
+++ b/pcap_set_tstamp_precision.3pcap.in
@@ -39,9 +39,9 @@
descriptor to the type specified by
.IR tstamp_precision .
It must be called on a pcap descriptor created by
-.B pcap_create()
+.B pcap_create(3PCAP)
that has not yet been activated by
-.BR pcap_activate() .
+.BR pcap_activate(3PCAP) .
Two time stamp precisions are supported, microseconds and nanoseconds. One can
use options
.B PCAP_TSTAMP_PRECISION_MICRO and
diff --git a/pcap_set_tstamp_type.3pcap.in b/pcap_set_tstamp_type.3pcap.in
index 7899da3..4accad9 100644
--- a/pcap_set_tstamp_type.3pcap.in
+++ b/pcap_set_tstamp_type.3pcap.in
@@ -38,10 +38,10 @@
descriptor to the type specified by
.IR tstamp_type .
It must be called on a pcap descriptor created by
-.B pcap_create()
+.B pcap_create(3PCAP)
that has not yet been activated by
-.BR pcap_activate() .
-.B pcap_list_tstamp_types()
+.BR pcap_activate(3PCAP) .
+.B pcap_list_tstamp_types(3PCAP)
will give a list of the time stamp types supported by a given capture
device.
See
@@ -60,6 +60,4 @@
if the capture device doesn't support setting the time stamp type.
.SH SEE ALSO
pcap(3PCAP),
-pcap_list_tstamp_types(3PCAP),
-pcap_tstamp_type_name_to_val(3PCAP),
-pcap-tstamp(@MAN_MISC_INFO@)
+pcap_tstamp_type_name_to_val(3PCAP)
diff --git a/pcap_setdirection.3pcap b/pcap_setdirection.3pcap
index 11945f5..11fef51 100644
--- a/pcap_setdirection.3pcap
+++ b/pcap_setdirection.3pcap
@@ -59,11 +59,11 @@
.B pcap_setdirection()
returns 0 on success and \-1 on failure.
If \-1 is returned,
-.B pcap_geterr()
+.B pcap_geterr(3PCAP)
or
-.B pcap_perror()
+.B 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_geterr(3PCAP)
+pcap(3PCAP)
diff --git a/pcap_setfilter.3pcap b/pcap_setfilter.3pcap
index 6efd253..ca91012 100644
--- a/pcap_setfilter.3pcap
+++ b/pcap_setfilter.3pcap
@@ -37,16 +37,16 @@
is a pointer to a
.I bpf_program
struct, usually the result of a call to
-.BR pcap_compile() .
+.BR \%pcap_compile(3PCAP) .
.SH RETURN VALUE
.B pcap_setfilter()
returns 0 on success and \-1 on failure.
If \-1 is returned,
-.B pcap_geterr()
+.B pcap_geterr(3PCAP)
or
-.B pcap_perror()
+.B 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_compile(3PCAP), pcap_geterr(3PCAP)
+pcap(3PCAP)
diff --git a/pcap_setnonblock.3pcap b/pcap_setnonblock.3pcap
index 6959127..1b138b8 100644
--- a/pcap_setnonblock.3pcap
+++ b/pcap_setnonblock.3pcap
@@ -50,18 +50,18 @@
In
``non-blocking'' mode, an attempt to read from the capture descriptor
with
-.B pcap_dispatch()
+.B 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()
+.B pcap_loop(3PCAP)
and
-.B pcap_next()
+.B pcap_next(3PCAP)
will not work in ``non-blocking'' mode.
.PP
When first activated with
-.B pcap_activate()
+.B pcap_activate(3PCAP)
or opened with
-.B pcap_open_live() ,
+.B 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.
@@ -78,4 +78,4 @@
.B PCAP_ERRBUF_SIZE
chars.
.SH SEE ALSO
-pcap(3PCAP), pcap_loop(3PCAP), pcap_next_ex(3PCAP), pcap_geterr(3PCAP)
+pcap(3PCAP), pcap_next_ex(3PCAP), pcap_geterr(3PCAP)
diff --git a/pcap_snapshot.3pcap b/pcap_snapshot.3pcap
index 7af8c33..3bfea92 100644
--- a/pcap_snapshot.3pcap
+++ b/pcap_snapshot.3pcap
@@ -33,16 +33,16 @@
.SH DESCRIPTION
.B pcap_snapshot()
returns the snapshot length specified when
-.B pcap_set_snapshot()
+.B pcap_set_snapshot(3PCAP)
or
-.B pcap_open_live()
+.B 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()
+.B \%pcap_create(3PCAP)
that has not yet been activated by
-.BR pcap_activate() .
+.BR \%pcap_activate(3PCAP) .
.SH RETURN VALUE
.B pcap_snapshot()
returns the snapshot length on success and
diff --git a/pcap_stats.3pcap b/pcap_stats.3pcap
index 2dce4b5..f10ba83 100644
--- a/pcap_stats.3pcap
+++ b/pcap_stats.3pcap
@@ -87,11 +87,11 @@
.I p
doesn't support packet statistics.
If \-1 is returned,
-.B pcap_geterr()
+.B pcap_geterr(3PCAP)
or
-.B pcap_perror()
+.B 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_geterr(3PCAP)
+pcap(3PCAP)
diff --git a/pcap_strerror.3pcap b/pcap_strerror.3pcap
index 7c7d53f..ae2216e 100644
--- a/pcap_strerror.3pcap
+++ b/pcap_strerror.3pcap
@@ -36,5 +36,3 @@
.BR strerror (3)
isn't available. It returns an error message string corresponding to
.IR error .
-.SH SEE ALSO
-strerror(3)