diff options
-rw-r--r-- | pcap_set_protocol_linux.3pcap | 5 | ||||
-rw-r--r-- | pcap_set_timeout.3pcap | 2 | ||||
-rw-r--r-- | pcap_set_tstamp_precision.3pcap.in | 4 | ||||
-rw-r--r-- | pcap_set_tstamp_type.3pcap.in | 10 | ||||
-rw-r--r-- | pcap_setdirection.3pcap | 6 | ||||
-rw-r--r-- | pcap_setfilter.3pcap | 8 | ||||
-rw-r--r-- | pcap_setnonblock.3pcap | 12 | ||||
-rw-r--r-- | pcap_snapshot.3pcap | 8 | ||||
-rw-r--r-- | pcap_stats.3pcap | 6 | ||||
-rw-r--r-- | pcap_strerror.3pcap | 2 |
10 files changed, 29 insertions, 34 deletions
diff --git a/pcap_set_protocol_linux.3pcap b/pcap_set_protocol_linux.3pcap index 40eb8d2e..1cbe4288 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() . +.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 @@ 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), 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 cacf603b..e67b8132 100644 --- a/pcap_set_timeout.3pcap +++ b/pcap_set_timeout.3pcap @@ -49,5 +49,5 @@ 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_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 57c4ea30..b4588f58 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() +.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 7899da31..4accad90 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() +.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 called on a capture handle that has been activated, and 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 11945f54..11fef513 100644 --- a/pcap_setdirection.3pcap +++ b/pcap_setdirection.3pcap @@ -59,11 +59,11 @@ This operation is not supported if a ``savefile'' is being read. .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 6efd2539..ca910127 100644 --- a/pcap_setfilter.3pcap +++ b/pcap_setfilter.3pcap @@ -37,16 +37,16 @@ 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() . +.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 69591270..1b138b80 100644 --- a/pcap_setnonblock.3pcap +++ b/pcap_setnonblock.3pcap @@ -50,18 +50,18 @@ returned. 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 @@ is assumed to be able to hold at least .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 7af8c33d..3bfea92a 100644 --- a/pcap_snapshot.3pcap +++ b/pcap_snapshot.3pcap @@ -33,16 +33,16 @@ int pcap_snapshot(pcap_t *p); .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 2dce4b50..f10ba832 100644 --- a/pcap_stats.3pcap +++ b/pcap_stats.3pcap @@ -87,11 +87,11 @@ returns 0 on success and returns \-1 if there is an error or if .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 7c7d53f5..ae2216e7 100644 --- a/pcap_strerror.3pcap +++ b/pcap_strerror.3pcap @@ -36,5 +36,3 @@ is provided in case .BR strerror (3) isn't available. It returns an error message string corresponding to .IR error . -.SH SEE ALSO -strerror(3) |