From 2faab3cddd9401bcf982c0e7b48330dd73a7862a Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 19 Feb 1999 07:40:59 +0000 Subject: [PATCH] Finish documenting -S src-addr change. Forgotten by: me Forgotten for: Far Too Long Gently Reminded by: Ruslan Ermilov Submitted by: Ruslan Ermilov --- sbin/ping/ping.8 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8 index 50aeb0886be..722dfcd1238 100644 --- a/sbin/ping/ping.8 +++ b/sbin/ping/ping.8 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)ping.8 8.2 (Berkeley) 12/11/93 -.\" $Id: ping.8,v 1.18 1998/11/29 13:20:04 bde Exp $ +.\" $Id: ping.8,v 1.19 1999/01/06 07:54:27 imp Exp $ .\" .Dd March 1, 1997 .Dt PING 8 @@ -204,6 +204,13 @@ with the 8 bytes of .Tn ICMP header data. Only the super-user may use this option. +.It Fl S Ar src_addr +Use the following IP address as the source address in outgoing packets. +On hosts with more than one IP address, this option can be used to +force the source address to be something other than the IP address +of the interface the probe packet is sent on. If the IP address +is not one of this machine's interface addresses, an error is +returned and nothing is sent. .It Fl T Ar ttl Set the IP Time To Live for multicasted packets. This flag only applies if the ping destination is a multicast address.