Reapply local changes that got simply axed by the latest KAME merge.

Fixed some more markup.
This commit is contained in:
Ruslan Ermilov 2004-05-17 08:25:15 +00:00
parent a18da9112d
commit 44d907a2fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129326

View File

@ -89,7 +89,7 @@ packets to network hosts
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
command uses the utility uses the
.Tn ICMPv6 .Tn ICMPv6
protocol's mandatory protocol's mandatory
.Tn ICMP6_ECHO_REQUEST .Tn ICMP6_ECHO_REQUEST
@ -106,7 +106,7 @@ The options are as follows:
.\" old ipsec .\" old ipsec
.\" .It Fl A .\" .It Fl A
.\" Enables transport-mode IPsec authentication header .\" Enables transport-mode IPsec authentication header
.\" .Pq experimental . .\" (experimental).
.It Fl a Ar addrtype .It Fl a Ar addrtype
Generate ICMPv6 Node Information Node Addresses query, rather than echo-request. Generate ICMPv6 Node Information Node Addresses query, rather than echo-request.
.Ar addrtype .Ar addrtype
@ -137,7 +137,7 @@ This is an experimental option.
Set socket buffer size. Set socket buffer size.
.It Fl c Ar count .It Fl c Ar count
Stop after sending Stop after sending
.Pq and receiving (and receiving)
.Ar count .Ar count
.Tn ECHO_RESPONSE .Tn ECHO_RESPONSE
packets. packets.
@ -147,7 +147,7 @@ Set the
option on the socket being used. option on the socket being used.
.\" .It Fl E .\" .It Fl E
.\" Enables transport-mode IPsec encapsulated security payload .\" Enables transport-mode IPsec encapsulated security payload
.\" .Pq experimental . .\" (experimental).
.It Fl f .It Fl f
Flood ping. Flood ping.
Outputs packets as fast as they come back or one hundred times per second, Outputs packets as fast as they come back or one hundred times per second,
@ -173,7 +173,7 @@ The gateway must be a neighbor of the sending node.
Specifies to try reverse-lookup of IPv6 addresses. Specifies to try reverse-lookup of IPv6 addresses.
The The
.Nm .Nm
command does not try reverse-lookup unless the option is specified. utility does not try reverse-lookup unless the option is specified.
.It Fl h Ar hoplimit .It Fl h Ar hoplimit
Set the IPv6 hoplimit. Set the IPv6 hoplimit.
.It Fl I Ar interface .It Fl I Ar interface
@ -201,7 +201,9 @@ Only the super-user may use this option.
By default, By default,
.Nm .Nm
asks the kernel to fragment packets to fit into the minimum IPv6 MTU. asks the kernel to fragment packets to fit into the minimum IPv6 MTU.
The
.Fl m .Fl m
option
will suppress the behavior in the following two levels: will suppress the behavior in the following two levels:
when the option is specified once, the behavior will be disabled for when the option is specified once, the behavior will be disabled for
unicast packets. unicast packets.
@ -215,7 +217,7 @@ Probe node information multicast group
.Pq Li ff02::2:xxxx:xxxx . .Pq Li ff02::2:xxxx:xxxx .
.Ar host .Ar host
must be string hostname of the target must be string hostname of the target
.Pq must not be a numeric IPv6 address . (must not be a numeric IPv6 address).
Node information multicast group will be computed based on given Node information multicast group will be computed based on given
.Ar host , .Ar host ,
and will be used as the final destination. and will be used as the final destination.
@ -301,13 +303,26 @@ If duplicate packets are received, they are not included in the packet
loss calculation, although the round trip time of these packets is used loss calculation, although the round trip time of these packets is used
in calculating the round-trip time statistics. in calculating the round-trip time statistics.
When the specified number of packets have been sent When the specified number of packets have been sent
.Pq and received (and received)
or if the program is terminated with a or if the program is terminated with a
.Dv SIGINT , .Dv SIGINT ,
a brief summary is displayed, showing the number of packets sent and a brief summary is displayed, showing the number of packets sent and
received, and the minimum, maximum, mean, and standard deviation of received, and the minimum, mean, maximum, and standard deviation of
the round-trip times. the round-trip times.
.Pp .Pp
If
.Nm
receives a
.Dv SIGINFO
(see the
.Cm status
argument for
.Xr stty 1 )
signal, the current number of packets sent and received, and the
minimum, mean, maximum, and standard deviation of the round-trip times
will be written to the standard output in the same format as the
standard completion message.
.Pp
This program is intended for use in network testing, measurement and This program is intended for use in network testing, measurement and
management. management.
Because of the load it can impose on the network, it is unwise to use Because of the load it can impose on the network, it is unwise to use
@ -324,12 +339,14 @@ during normal operations or from automated scripts.
.\" When a .\" When a
.\" .Ar packetsize .\" .Ar packetsize
.\" is given, this indicated the size of this extra piece of data .\" is given, this indicated the size of this extra piece of data
.\" .Pq the default is 56 . .\" (the default is 56).
.\" Thus the amount of data received inside of an IP packet of type .\" Thus the amount of data received inside of an IP packet of type
.\" .Tn ICMP .\" .Tn ICMP
.\" .Tn ECHO_REPLY .\" .Tn ECHO_REPLY
.\" will always be 8 bytes more than the requested data space .\" will always be 8 bytes more than the requested data space
.\" .Pq the Tn ICMP header . .\" (the
.\" .Tn ICMP
.\" header).
.\" .Pp .\" .Pp
.\" If the data space is at least eight bytes large, .\" If the data space is at least eight bytes large,
.\" .Nm .\" .Nm
@ -340,12 +357,12 @@ during normal operations or from automated scripts.
.Sh DUPLICATE AND DAMAGED PACKETS .Sh DUPLICATE AND DAMAGED PACKETS
The The
.Nm .Nm
command will report duplicate and damaged packets. utility will report duplicate and damaged packets.
Duplicate packets should never occur when pinging a unicast address, Duplicate packets should never occur when pinging a unicast address,
and seem to be caused by and seem to be caused by
inappropriate link-level retransmissions. inappropriate link-level retransmissions.
Duplicates may occur in many situations and are rarely Duplicates may occur in many situations and are rarely
.Pq if ever (if ever)
a good sign, although the presence of low levels of duplicates may not a good sign, although the presence of low levels of duplicates may not
always be cause for alarm. always be cause for alarm.
Duplicates are expected when pinging a broadcast or multicast address, Duplicates are expected when pinging a broadcast or multicast address,
@ -356,7 +373,7 @@ Damaged packets are obviously serious cause for alarm and often
indicate broken hardware somewhere in the indicate broken hardware somewhere in the
.Nm .Nm
packet's path packet's path
.Pq in the network or in the hosts . (in the network or in the hosts).
.Sh TRYING DIFFERENT DATA PATTERNS .Sh TRYING DIFFERENT DATA PATTERNS
The The
(inter)network (inter)network
@ -385,10 +402,11 @@ You can then examine this file for repeated patterns that you can test
using the using the
.Fl p .Fl p
option of option of
.Nm Ns . .Nm .
.Sh RETURN VALUES .Sh DIAGNOSTICS
The
.Nm .Nm
command returns 0 on success (the host is alive), utility returns 0 on success (the host is alive),
and non-zero if the arguments are incorrect or the host is not responding. and non-zero if the arguments are incorrect or the host is not responding.
.Sh EXAMPLES .Sh EXAMPLES
Normally, Normally,
@ -444,18 +462,21 @@ ping6 -a agl dst.foo.com
.Sh HISTORY .Sh HISTORY
The The
.Xr ping 8 .Xr ping 8
command appeared in utility appeared in
.Bx 4.3 . .Bx 4.3 .
The The
.Nm .Nm
command with IPv6 support first appeared in the WIDE Hydrangea IPv6 utility with IPv6 support first appeared in the WIDE Hydrangea IPv6
protocol stack kit. protocol stack kit.
.Pp .Pp
IPv6 and IPsec support based on the KAME Project (http://www.kame.net/) stack IPv6 and IPsec support based on the KAME Project
was initially integrated into .Pq Pa http://www.kame.net/
.Fx 4.0 stack was initially integrated into
.Fx 4.0 .
.Sh BUGS .Sh BUGS
The
.Nm .Nm
utility
is intentionally separate from is intentionally separate from
.Xr ping 8 . .Xr ping 8 .
.Pp .Pp