diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2023-03-18 11:44:54 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2023-03-18 11:44:54 +0000 |
commit | 0cf09b79f7d49e2080e3febba355622b47b619a3 (patch) | |
tree | 4f5d998105d252b3bd99178c90e9d43449ee9437 /sbin/route | |
parent | dc2b96220f99b05ba13fe46af812ba731d932e89 (diff) |
sourceaddr:
- show that -ifp and "address" do not mix
- show how to reset value (from claudio)
- tweak text
ok claudio
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.8 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/route/route.8 b/sbin/route/route.8 index e93954e2bbd..8a26444ed1d 100644 --- a/sbin/route/route.8 +++ b/sbin/route/route.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: route.8,v 1.116 2023/03/15 22:39:58 jmc Exp $ +.\" $OpenBSD: route.8,v 1.117 2023/03/18 11:44:53 jmc Exp $ .\" $NetBSD: route.8,v 1.6 1995/03/18 15:00:13 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)route.8 8.3 (Berkeley) 3/19/94 .\" -.Dd $Mdocdate: March 15 2023 $ +.Dd $Mdocdate: March 18 2023 $ .Dt ROUTE 8 .Os .Sh NAME @@ -429,18 +429,18 @@ The mapping between letters and flags is: .Op Fl T Ar rtable .Tg .Cm sourceaddr -.Op Fl ifp Ar ifname -.Op Ar address +.Op Fl ifp Ar ifname | Ar address .Xc -Set the preferred source address. -If -.Ar address -is omitted, the preferred source addresses are printed. -If -.Fl ifp -is used, the address assigned to the interface +Set the preferred source address to +.Ar address . +The source address can be set to the address assigned to interface .Ar ifname -is used. +if +.Fl ifp +is specified, +or reset by setting the address to zero. +If no arguments are given, +the preferred source addresses are printed. The preferred source address is not used if the destination is on-link or the source address is assigned to a disabled interface. .El |