diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-02-11 18:41:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-02-11 18:41:40 +0000 |
commit | bdf28dec301e92fd0980f520383bd2cb39ad7698 (patch) | |
tree | b3b770ab8a27a5a5311af7476958d45a5ff115f4 /sbin | |
parent | 45f4e7054a393165a17bc1b6e9bb1978eae73a2b (diff) |
Simplify and unify wording for the -I sourceaddr option in various places.
This is somewhat related to the "-b bind_addr" option some programs have,
which should get some cleanup also...
input florian claudio jmc
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ping/ping.8 | 12 | ||||
-rw-r--r-- | sbin/ping/ping.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8 index bbf541596fe..259a6f363d1 100644 --- a/sbin/ping/ping.8 +++ b/sbin/ping/ping.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ping.8,v 1.62 2020/01/04 01:00:18 cheloha Exp $ +.\" $OpenBSD: ping.8,v 1.63 2020/02/11 18:41:39 deraadt Exp $ .\" $NetBSD: ping.8,v 1.10 1995/12/31 04:55:35 ghudson Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -57,7 +57,7 @@ .\" .\" @(#)ping.8 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: January 4 2020 $ +.Dd $Mdocdate: February 11 2020 $ .Dt PING 8 .Os .Sh NAME @@ -68,7 +68,7 @@ .Nm ping .Op Fl DdEefHLnqRv .Op Fl c Ar count -.Op Fl I Ar ifaddr +.Op Fl I Ar sourceaddr .Op Fl i Ar interval .Op Fl l Ar preload .Op Fl p Ar pattern @@ -156,9 +156,9 @@ Try reverse lookups for addresses. .It Fl h Ar hoplimit .Pq IPv6 only Set the hoplimit. -.It Fl I Ar ifaddr -Specify the interface address to transmit from -on machines with multiple interfaces. +.It Fl I Ar sourceaddr +Set the source address to transmit from, which is useful on machines +with multiple interfaces. For unicast and multicast pings. .It Fl i Ar interval Send one packet every diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index c870234dac2..238a3798d3a 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.239 2020/01/04 01:00:18 cheloha Exp $ */ +/* $OpenBSD: ping.c,v 1.240 2020/02/11 18:41:39 deraadt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -2191,7 +2191,7 @@ usage(void) "\t[-V rtable] [-w maxwait] host\n"); } else { fprintf(stderr, - "usage: ping [-DdEefHLnqRv] [-c count] [-I ifaddr] " + "usage: ping [-DdEefHLnqRv] [-c count] [-I sourceaddr] " "[-i interval]\n\t[-l preload] [-p pattern] [-s packetsize]" #ifndef SMALL " [-T toskeyword]" |