OpenBSD CVS

CVS log for src/sbin/route/route.8


[BACK] Up to [local] / src / sbin / route

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.119 / (download) - annotate - [select for diffs], Wed Aug 2 23:34:13 2023 UTC (10 months ago) by aisha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.118: +33 -3 lines
Diff to previous 1.118 (colored)

add EXIT STATUS section with information for the exec subcommand

patch by Matthew Martin <phy1729 AT gmail DOT com>

Revision 1.118 / (download) - annotate - [select for diffs], Thu Apr 6 11:29:55 2023 UTC (14 months ago) by kn
Branch: MAIN
Changes since 1.117: +23 -23 lines
Diff to previous 1.117 (colored)

Markup route flags to get tags

":tM" to jump to the definition of RTF_MODIFIED is easier and faster than
manually navigating there.

OK schwarze

Revision 1.117 / (download) - annotate - [select for diffs], Sat Mar 18 11:44:53 2023 UTC (14 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.116: +12 -12 lines
Diff to previous 1.116 (colored)

sourceaddr:

- show that -ifp and "address" do not mix
- show how to reset value (from claudio)
- tweak text

ok claudio

Revision 1.116 / (download) - annotate - [select for diffs], Wed Mar 15 22:39:58 2023 UTC (14 months, 3 weeks ago) by jmc
Branch: MAIN
Changes since 1.115: +2 -3 lines
Diff to previous 1.115 (colored)

tweak sourceaddr:

- remove "-inet|-inet6" as it is not generally meaningful
- remove the qualifier "if set": sourceaddr now works nicely in cases
  where no "address is given

Revision 1.115 / (download) - annotate - [select for diffs], Tue Mar 7 10:58:39 2023 UTC (15 months ago) by kn
Branch: MAIN
Changes since 1.114: +13 -2 lines
Diff to previous 1.114 (colored)

restore tags for commands lost in r1.112 restructuring; OK jmc

Revision 1.114 / (download) - annotate - [select for diffs], Tue Mar 7 07:54:59 2023 UTC (15 months ago) by jmc
Branch: MAIN
Changes since 1.113: +7 -5 lines
Diff to previous 1.113 (colored)

mpls gateway clarification; from claudio

Revision 1.113 / (download) - annotate - [select for diffs], Fri Mar 3 08:08:15 2023 UTC (15 months, 1 week ago) by jsg
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

namservers -> nameservers

Revision 1.112 / (download) - annotate - [select for diffs], Thu Mar 2 17:11:33 2023 UTC (15 months, 1 week ago) by jmc
Branch: MAIN
Changes since 1.111: +283 -378 lines
Diff to previous 1.111 (colored)

restructure the page into one single list for all routing commands;
while there, whack anything either out of date or not useful

joint work with claudio

Revision 1.111 / (download) - annotate - [select for diffs], Tue Feb 21 07:47:24 2023 UTC (15 months, 2 weeks ago) by jmc
Branch: MAIN
Changes since 1.110: +7 -15 lines
Diff to previous 1.110 (colored)

some nameserver proposal bits:

unwind.8: point to resolvd(8) for autoconf sources
unwind.conf.5: order preferred list by order of preference
resolvd.8: reformat to read better
route.8: no need to discuss unwind in the nameserver command
umb.4 + sppp.4: note the sending of nameserver proposals

the umb/sppp text is from claudio
tobhe confirmed iked sending proposals when configured to do so

much assistance and ok: florian claudio

Revision 1.110 / (download) - annotate - [select for diffs], Tue Feb 14 00:41:02 2023 UTC (15 months, 3 weeks ago) by kn
Branch: MAIN
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored)

Typofix -ssthresh in HISTORY

Revision 1.109 / (download) - annotate - [select for diffs], Thu Dec 22 19:53:22 2022 UTC (17 months, 2 weeks ago) by kn
Branch: MAIN
Changes since 1.108: +9 -9 lines
Diff to previous 1.108 (colored)

Denote multiple arguments with 'arg ...' not 'args'

A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.

mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.

Cleanup a few markups of the same argument so the text keeps reading
naturally;  omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.

For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.

Feedback millert jmc schwarze deraadt
OK jmc

Revision 1.108 / (download) - annotate - [select for diffs], Thu Dec 22 07:46:19 2022 UTC (17 months, 2 weeks ago) by jmc
Branch: MAIN
Changes since 1.107: +9 -5 lines
Diff to previous 1.107 (colored)

it seems we made a separate list for the two sourceaddr commands,
just to remove some vertical spacing; that is unfortunate
because when i adjusted the list spacing it did not affect this second
list, and logically it is one list (route commands) not two;

resolve this by having one -compact list, and inserting Pp between list items
where needed;

Revision 1.107 / (download) - annotate - [select for diffs], Thu Dec 22 07:23:29 2022 UTC (17 months, 2 weeks ago) by jmc
Branch: MAIN
Changes since 1.106: +32 -11 lines
Diff to previous 1.106 (colored)

move the flag mappings displayed by "route show" from netstat(1) to route(8):
diff from paul tagliamonte, who was surprised to find them not documented
in route(8);

claudio agreed placement was not ideal;
deraadt confirmed users better served by route(8) than netstat(1);

i've tweaked some of the spacing and text so it displays better,
and removed some macros incorrectly associated with the "nameserver"
list item, which was messing up the formatting. should display better
now

Revision 1.106 / (download) - annotate - [select for diffs], Sat Nov 19 19:23:37 2022 UTC (18 months, 2 weeks ago) by kn
Branch: MAIN
Changes since 1.105: +3 -2 lines
Diff to previous 1.105 (colored)

fix vertical spacing in previous

Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 9 10:23:01 2022 UTC (18 months, 4 weeks ago) by sthen
Branch: MAIN
Changes since 1.104: +9 -2 lines
Diff to previous 1.104 (colored)

add an example for adding a cloning host route to reach a gateway which is
outside the subnet, some hosting providers use this. info from Eric JACQUOT
ok florian kn phessler

Revision 1.104 / (download) - annotate - [select for diffs], Fri Jul 29 18:28:32 2022 UTC (22 months, 1 week ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.103: +6 -2 lines
Diff to previous 1.103 (colored)

Mention id(1) -R, reference rtable(4) in route(8)

Fix "ps -o rtable" example description while here.

Initial idea to mention id -R in route(8) from sthen
Feedback OK sthen

Revision 1.103 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:20 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.102 / (download) - annotate - [select for diffs], Tue Oct 26 15:48:25 2021 UTC (2 years, 7 months ago) by kn
Branch: MAIN
Changes since 1.101: +9 -4 lines
Diff to previous 1.101 (colored)

Generalise "nameserver" workings

The generated route message is not at all resolvd(8) specific.
Mention how unwind(8) reacts to proposals as well.

"Broadcast" wording deraadt jmc
OK millert

Revision 1.101 / (download) - annotate - [select for diffs], Fri Oct 22 18:31:12 2021 UTC (2 years, 7 months ago) by kn
Branch: MAIN
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored)

Make ":tdelete" work

r1.91 added tags for all commands, but "del[ete]" is special in that
mandoc(1) will generate a tag for "del" only.

Add an explicit for the full command to fix this.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Aug 30 15:46:07 2021 UTC (2 years, 9 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

Clarify how dns proposals are replaced not added per interface

OK benno

Revision 1.99 / (download) - annotate - [select for diffs], Sun Aug 29 19:55:12 2021 UTC (2 years, 9 months ago) by kn
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored)

nameserver command requires an interface argument

Revision 1.98 / (download) - annotate - [select for diffs], Thu Aug 5 09:02:19 2021 UTC (2 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.97: +4 -5 lines
Diff to previous 1.97 (colored)

for nameserver usage, show multiple addresses as "address ..."; ok benno
while here, Pa->Xr for resolv.conf;

Revision 1.97 / (download) - annotate - [select for diffs], Thu Aug 5 06:21:32 2021 UTC (2 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.96: +25 -23 lines
Diff to previous 1.96 (colored)

sort the new nameserver text; rework it a little; sort SEE ALSO;

Revision 1.96 / (download) - annotate - [select for diffs], Wed Aug 4 18:17:23 2021 UTC (2 years, 10 months ago) by benno
Branch: MAIN
Changes since 1.95: +24 -3 lines
Diff to previous 1.95 (colored)

Add a new 'nameserver' command to route(8).
It sends nameserver proposals to resolvd(8) using the dns proposal
protocol over the route socket. Based on a seperate program
written by florian@. deraadt noticed some whitespace issues.
more fixes and ok florian@

Revision 1.95 / (download) - annotate - [select for diffs], Sat Jan 2 15:35:24 2021 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.94: +9 -5 lines
Diff to previous 1.94 (colored)

add three missing .Dv macros,
and move punctuation out of two that are already there

Revision 1.94 / (download) - annotate - [select for diffs], Sat Nov 7 09:51:40 2020 UTC (3 years, 7 months ago) by denis
Branch: MAIN
Changes since 1.93: +2 -4 lines
Diff to previous 1.93 (colored)

Rework source IP address setting.

- Move most of the processing out of rtable.c (reasonnable tb@, ok bluhm@)
- Remove memory allocation, store pointer to existing ifaddr
- Fix tunnel interface handling

looks fine mpi@

Revision 1.93 / (download) - annotate - [select for diffs], Fri Oct 30 14:30:51 2020 UTC (3 years, 7 months ago) by denis
Branch: MAIN
Changes since 1.92: +8 -5 lines
Diff to previous 1.92 (colored)

Source address set can be printed

Revision 1.92 / (download) - annotate - [select for diffs], Thu Oct 29 21:15:26 2020 UTC (3 years, 7 months ago) by denis
Branch: MAIN
Changes since 1.91: +42 -2 lines
Diff to previous 1.91 (colored)

Add feature to force the selection of source IP address

Based/previous work on an idea from deraadt@
Input from claudio@, djm@, deraadt@, sthen@

OK deraadt@

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jan 19 18:22:31 2020 UTC (4 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.90: +27 -2 lines
Diff to previous 1.90 (colored)

add some explicit tagging macros; OK kn@ on a previous version

Revision 1.90 / (download) - annotate - [select for diffs], Tue Apr 30 16:34:19 2019 UTC (5 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.89: +11 -4 lines
Diff to previous 1.89 (colored)

elaborate a little on how route priorities work;
help/ok claudio

Revision 1.89 / (download) - annotate - [select for diffs], Wed Apr 17 20:34:21 2019 UTC (5 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.88: +6 -4 lines
Diff to previous 1.88 (colored)

signpost the location of the text explaining routing table output a little better...

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jul 14 13:38:48 2018 UTC (5 years, 10 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.87: +6 -2 lines
Diff to previous 1.87 (colored)

Document that route monitor also takes -T rtable as an argument.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jul 13 09:06:58 2018 UTC (5 years, 10 months ago) by kn
Branch: MAIN
Changes since 1.86: +12 -12 lines
Diff to previous 1.86 (colored)

Use "rtable" not "tableid" as argument name for rtable

Make rtable(4) usage documentation consistent with other programs.
This is to have `man -k ar~rtable' show the full list without having to
look for other variations of the same argument type.

OK bluhm

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 9 14:11:00 2018 UTC (5 years, 11 months ago) by jca
Branch: MAIN
Changes since 1.85: +2 -11 lines
Diff to previous 1.85 (colored)

Kill fluff about how route(8) is of limited usefulness

Don't say that route(8) is mostly useful to set up a default route,
which is almost a lie.  What's more, I'm not sure new users struggling
with route(8) should be pointed to ripd(8) (sic) or bgpd(8) as
a solution to their problems.  ok benno@ kn@

Revision 1.85 / (download) - annotate - [select for diffs], Mon Apr 30 15:06:18 2018 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.84: +4 -7 lines
Diff to previous 1.84 (colored)

* simplify code by no longer calling getnetbyname(3)
* avoid double lookups for unresolvable names without -net
* more fitting error message for unresolvable names after -net
OK florian@

Revision 1.84 / (download) - annotate - [select for diffs], Sat Apr 28 21:45:38 2018 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.83: +4 -8 lines
Diff to previous 1.83 (colored)

remove references to /etc/networks; reminded by jmc@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Sep 6 20:21:22 2017 UTC (6 years, 9 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.82: +2 -4 lines
Diff to previous 1.82 (colored)

backout previous diff:
    autodetect AF when setting inet6 default route
    From Denis Fondras, thanks!
    ok phessler@ bluhm@
it breaks with ipv6 link-local routes, e.g.
/sbin/route -inet6 default -ifp pppoe0 fe80::%pppoe0
found by jmc@
ok florian

Revision 1.82 / (download) - annotate - [select for diffs], Fri Aug 11 10:28:55 2017 UTC (6 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.81: +4 -5 lines
Diff to previous 1.81 (colored)

new sentence, new line;

Revision 1.81 / (download) - annotate - [select for diffs], Thu Aug 10 17:47:31 2017 UTC (6 years, 9 months ago) by benno
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

document use of del as short form for delete, from jca
ok schwarze@

Revision 1.80 / (download) - annotate - [select for diffs], Thu Aug 10 16:05:23 2017 UTC (6 years, 9 months ago) by benno
Branch: MAIN
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored)

autodetect AF when setting inet6 default route
From Denis Fondras, thanks!
ok phessler@ bluhm@

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jan 1 01:08:11 2017 UTC (7 years, 5 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known'
if they precede the noun and omit hyphens otherwise.

ok tj

Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 11 20:08:40 2015 UTC (8 years, 8 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.77: +2 -3 lines
Diff to previous 1.77 (colored)

Remove RTF_XRESOLVE support.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jul 18 00:05:02 2015 UTC (8 years, 10 months ago) by phessler
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.76: +9 -1 lines
Diff to previous 1.76 (colored)

On systems with a full routing table (550k+), we often want to be able to
look at the routes with a priority, or to display all routes that do not
have a specific priority (normally, don't show bgp).

We are intentionally not updating netstat -r yet, as we do not have a
good flag to use.

first version from, and OK benno@

Revision 1.76 / (download) - annotate - [select for diffs], Sun May 17 00:08:35 2015 UTC (9 years ago) by deraadt
Branch: MAIN
Changes since 1.75: +2 -5 lines
Diff to previous 1.75 (colored)

nope, ioctl has not been used for a while

Revision 1.75 / (download) - annotate - [select for diffs], Wed May 6 07:55:42 2015 UTC (9 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored)

Document that priority 1 is reserved for kernel use.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Feb 6 03:22:00 2015 UTC (9 years, 4 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.73: +2 -6 lines
Diff to previous 1.73 (colored)

Remove route/netstat -f encap in favor of ipsecctl -s flow.

OK deraadt@

Revision 1.73 / (download) - annotate - [select for diffs], Wed Feb 26 21:10:03 2014 UTC (10 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.72: +5 -5 lines
Diff to previous 1.72 (colored)

Try to be more precise about rtable and rdomains.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Jan 22 06:23:37 2014 UTC (10 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.71: +2 -11 lines
Diff to previous 1.71 (colored)

Remove genmask support from route(8). It still will show them in monitor
or get but you can no longer set it. genmask will die soon since nobody
needs it. OK benno@ and agreed by dlg@

Revision 1.71 / (download) - annotate - [select for diffs], Mon May 27 14:07:25 2013 UTC (11 years ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.70: +7 -2 lines
Diff to previous 1.70 (colored)

autodetect ipv6 addresses for route(8). ok benno@ bluhm@, manpage help jmc@

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jul 13 10:15:53 2012 UTC (11 years, 10 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.69: +9 -2 lines
Diff to previous 1.69 (colored)

allow destination/prefixlen syntax for ipv6 routes.
from Florian Obser, florian -AT- narrans -DOT- de

ok sthen@

Revision 1.69 / (download) - annotate - [select for diffs], Sat Sep 3 22:59:08 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

make -column lists pretty again;

specifically, rewrite them to permit some markup in the column headers,
and use "Ta" instead of literal tabs; mandoc does not currently match groff
100%, but a mandoc fix may be some time off, and we've gone enough releases
with poorly formatting column lists.

in some cases i have rewritten the lists as -tag, where -column made
little sense.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jul 5 05:44:05 2011 UTC (12 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.67: +2 -3 lines
Diff to previous 1.67 (colored)

kill a useless Pp;

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jul 5 05:06:25 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Flip one .Fl interface to .Fl iface since iface is used everywhere else
even though -interface is the same as -iface.
OK jmc@

Revision 1.66 / (download) - annotate - [select for diffs], Tue Sep 21 14:46:40 2010 UTC (13 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.65: +6 -10 lines
Diff to previous 1.65 (colored)

15 months later, there is still no mpls(4) man page: .Xr mpls 4 -> MPLS

Revision 1.65 / (download) - annotate - [select for diffs], Tue Sep 21 10:58:23 2010 UTC (13 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.64: +7 -2 lines
Diff to previous 1.64 (colored)

Add '-label' to specify that you only want to see routes having the
given label. No change to existing functionality.

ok henning@ claudio@

Revision 1.64 / (download) - annotate - [select for diffs], Sun Dec 20 15:35:13 2009 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.63: +73 -88 lines
Diff to previous 1.63 (colored)

First shot at making this manual page not look like a black sheep.  Been
looking at it with claudio since I started doing more routing stuff.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Dec 11 21:37:08 2009 UTC (14 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

be a little more specific about -ifp; from Doran Mori

Revision 1.62 / (download) - annotate - [select for diffs], Tue Dec 1 16:21:46 2009 UTC (14 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.61: +22 -2 lines
Diff to previous 1.61 (colored)

Add the new exec command to run a process and its children in a
non-default rdomain/rtable.  route will change the default rdomain
using the new setrdomain() syscall and execute the supplied command,
eg. "route -T1 exec /usr/sbin/named".

Tested by many including michele@, phessler@
ok claudio@, deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Nov 4 08:27:21 2009 UTC (14 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

tweak previous;

Revision 1.60 / (download) - annotate - [select for diffs], Tue Nov 3 22:37:59 2009 UTC (14 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.59: +4 -9 lines
Diff to previous 1.59 (colored)

Lies. We no longer support this magic netmask at the end of the line
compatibility.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jun 25 10:22:54 2009 UTC (14 years, 11 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.58: +27 -1 lines
Diff to previous 1.58 (colored)

Document how to add static MPLS labels.

input jmc@, ok claudio@

Revision 1.58 / (download) - annotate - [select for diffs], Sat May 30 21:06:34 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.57: +13 -4 lines
Diff to previous 1.57 (colored)

Make it possible to filter monitor output on AF or show only interface
specific changes. OK henning@

Revision 1.57 / (download) - annotate - [select for diffs], Sat May 30 19:50:28 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.56: +9 -3 lines
Diff to previous 1.56 (colored)

Make route flush more powerful by allowing -iface/-interface or -priority
to be specified. So only routes matching these conditions will be flushed.
This will help making dhclient less dumb when fiddeling with routes.
OK henning@

Revision 1.56 / (download) - annotate - [select for diffs], Wed May 7 06:29:48 2008 UTC (16 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.55: +12 -6 lines
Diff to previous 1.55 (colored)

Document -priority. looks good norby@

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jun 4 12:23:43 2007 UTC (17 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.54: +2 -4 lines
Diff to previous 1.54 (colored)

remove IPX, agreed by many
libc and kernel side awaiting a libc major bump to piggyback to

Revision 1.54 / (download) - annotate - [select for diffs], Thu May 31 19:19:47 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

convert to new .Dd format;

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 25 16:10:35 2007 UTC (17 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.52: +8 -5 lines
Diff to previous 1.52 (colored)

Instead of using the global -F flag that only works with show, switch to a
show specific modifier -gateway to show only routes whose gateway are in the
same AF as the destination.
Requested by deraadt@, OK pyr@, reyk@, michele@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 23 20:29:35 2007 UTC (17 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

add -F to SYNOPSIS;

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 23 16:02:26 2007 UTC (17 years, 2 months ago) by pyr
Branch: MAIN
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored)

Add a new flag -F to netstat restricting route display in conjuction
with -r to routes in the same address family as the destination.
ok henning@, claudio@

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 19 20:49:30 2007 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.49: +19 -1 lines
Diff to previous 1.49 (colored)

add an EXAMPLES section;

from mark lumsden via otto, tidied up somewhat by myself;
ok otto claudio

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jan 15 22:50:05 2007 UTC (17 years, 4 months ago) by stevesk
Branch: MAIN
Changes since 1.48: +3 -7 lines
Diff to previous 1.48 (colored)

reference ripd(8) vs. routed(8) and remove routed statement in BUGS
that no longer applies because it is not referenced.  ok claudio@ jmc@

Revision 1.48 / (download) - annotate - [select for diffs], Wed Nov 29 14:42:22 2006 UTC (17 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

tweak; ok henning

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 28 21:37:22 2006 UTC (17 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

add -T to synopsis;

Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 28 16:48:13 2006 UTC (17 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored)

-T in synopsis and briefly in manpage

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 16 08:44:56 2006 UTC (17 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.44: +15 -1 lines
Diff to previous 1.44 (colored)

More details on multipath.

ok henning + style suggestions from jmc

Revision 1.44 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:06 2006 UTC (18 years, 2 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.43: +5 -1 lines
Diff to previous 1.43 (colored)

document -encap.  ok claudio@

Revision 1.43 / (download) - annotate - [select for diffs], Wed Mar 30 08:52:35 2005 UTC (19 years, 2 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)

mention ospfd as well

Revision 1.42 / (download) - annotate - [select for diffs], Wed Mar 30 05:20:18 2005 UTC (19 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.41: +1 -3 lines
Diff to previous 1.41 (colored)

remove ccitt x.25 traces, ok theo

Revision 1.41 / (download) - annotate - [select for diffs], Tue Aug 10 20:02:04 2004 UTC (19 years, 10 months ago) by jaredy
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.40: +178 -68 lines
Diff to previous 1.40 (colored)

update to reality
- fix syntax usage
- remove source routing stuff
- mention bgpd
- document -t, -genmask (from FreeBSD), and -label
- move -rtt, -rttvar, -recvpipe ... into HISTORY
- remove ISO mention
mdoc fixes
sort list of and add syntax usage for sub-commands
list supported address families in a separate table
consistency and reorganizational fixes
elaborate on some topics (some from NetBSD)
punctuation, grammar, and rewording fixes
add some FILES and cross-refs

requested by, help, and ok henning
help and ok jmc

Revision 1.40 / (download) - annotate - [select for diffs], Tue Aug 3 13:39:52 2004 UTC (19 years, 10 months ago) by henning
Branch: MAIN
Changes since 1.39: +1 -20 lines
Diff to previous 1.39 (colored)

-src/-srcmask are no more

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 15 23:40:39 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.38: +1 -2 lines
Diff to previous 1.38 (colored)

remove references to removed pages: clnp(4), esis(4), and iso(4);

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jun 28 21:27:40 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.37: +13 -13 lines
Diff to previous 1.37 (colored)

- repair examples which i damaged in previous commit
- tidy up DIAGNOSTICS, and use -diag
- wording

from jared yanovich;

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jun 26 13:53:55 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.36: +26 -32 lines
Diff to previous 1.36 (colored)

grammar, formatting, consistency, spelling, etc. from jared yanovich;

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 26 10:16:49 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

grammar;

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 25 01:26:01 2004 UTC (19 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.34: +5 -22 lines
Diff to previous 1.34 (colored)

remove netiso and netns code

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jun 19 19:55:53 2004 UTC (19 years, 11 months ago) by cedric
Branch: MAIN
Changes since 1.33: +8 -1 lines
Diff to previous 1.33 (colored)

require RTF_MPATH to enter a multipath route with RTM_ADD.
route(8) takes a new -mpath modifier to enter a multipath route.
requested deraadt@, ok itojun@ mcbride@ millert@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 18 17:04:15 2004 UTC (19 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.32: +47 -38 lines
Diff to previous 1.32 (colored)

Make this better reflect reality; OK and with help from Cedric

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jun 6 22:17:28 2004 UTC (20 years ago) by jmc
Branch: MAIN
Changes since 1.31: +6 -10 lines
Diff to previous 1.31 (colored)

- wording
- simplify some displays

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jun 6 17:08:23 2004 UTC (20 years ago) by cedric
Branch: MAIN
Changes since 1.30: +37 -1 lines
Diff to previous 1.30 (colored)

add new "-src" and "-srcmask" modifiers to make it possible to add a source
selector part to the routing table entry. complements existing "-dst" and
"-dstmask". typical use:

   route add -src 20.20.20.22 20.20.20.21
   route add -src 192.168.1.0/24 -dst 192.168.2.0/24 20.20.20.21

useful for example to implement symetrical routing on multihomed boxes,
or to better select which packets to send to gif/tun/... tunnels.
new '-S' flag similar to netstat one. ok deraadt@ mcbride@

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 31 07:03:29 2003 UTC (20 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.29: +7 -1 lines
Diff to previous 1.29 (colored)

add references to /etc/mygate in FILES and SEE ALSO;
from Han Boetes.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:16 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.28: +2 -6 lines
Diff to previous 1.28 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 11 07:26:20 2003 UTC (21 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.27: +7 -5 lines
Diff to previous 1.27 (colored)

typos;

raidctl(8) ok millert@
mknetid(8) help maja@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 8 18:53:42 2002 UTC (22 years ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

support IPv4 in -prefixlen.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Dec 20 21:18:39 2000 UTC (23 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.25: +7 -1 lines
Diff to previous 1.25 (colored)

document "default" argument

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 27 20:12:25 2000 UTC (23 years, 10 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.24: +2 -7 lines
Diff to previous 1.24 (colored)

Don't show or delete IPsec flows with the route command -- this was a
kludge to begin with, and it's about time we get rid of it.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 15 11:45:58 2000 UTC (24 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Apr 15 02:15:17 2000 UTC (24 years, 1 month ago) by aaron
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Mostly punctuation fixes.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Apr 12 21:48:00 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Trailing whitespace begone!

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 18 22:56:04 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.20: +7 -7 lines
Diff to previous 1.20 (colored)

Remove hard sentence breaks, and some other cleanup along the way.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Mar 14 21:31:35 2000 UTC (24 years, 3 months ago) by aaron
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Suffix "i.e." and "e.g." with a comma. Just another really picky man page
commit, as we want our documentation to be as consistently formatted as
possible (it's getting there :-)).

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 8 07:55:54 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.18: +19 -2 lines
Diff to previous 1.18 (colored)

ipv6 support from KAME (needs no libc upgrade).  regen keywords.[ch].

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 29 22:14:33 1999 UTC (24 years, 10 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.17: +10 -3 lines
Diff to previous 1.17 (colored)

Modified 'route flush' default behaviour to skip '-encap' (PF_KEY) flows,
as deleting these will leave the SPIs behind. 'route flush -encap' will
still delete the flows. 'ipsecadm' should do this, and properly.

PF_KEY/AF_KEY nitpick. Sync man page. Add ref to ipsecadm(1).

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 4 02:45:23 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.16: +13 -13 lines
Diff to previous 1.16 (colored)

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 23 14:11:20 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 12 13:26:49 1999 UTC (25 years, 1 month ago) by aaron
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

grammar police: do not hyphenate compound words that act as adjectives if the
first word ends in -ly

i.e., fully-qualified, newly-created, globally-visible, etc. are wrong

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 16 02:46:51 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

fix Xr; msfriedl@fau.de

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 15 14:31:23 1998 UTC (25 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored)

clean; form

Revision 1.12 / (download) - annotate - [select for diffs], Tue Dec 15 01:20:43 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 28 19:56:33 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored)

kill redundant .Nm macro arguments; other misc fixes

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 11 22:20:00 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.9: +11 -6 lines
Diff to previous 1.9 (colored)

more `` '' -> .Dq sillyness; remove redundant .Pp macros; other misc fixes

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 23 01:20:25 1998 UTC (25 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

alphabetize SEE ALSO entries and order them numerically according to section

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 17 04:15:01 1998 UTC (25 years, 8 months ago) by aaron
Branch: MAIN
Changes since 1.7: +19 -14 lines
Diff to previous 1.7 (colored)

sbin/ man page fixes

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 15 17:22:32 1998 UTC (26 years, 4 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

document -d

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 13 23:12:08 1997 UTC (26 years, 11 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Added -encap flag for flushing, added a missing break; in flushing X25
entries.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 10 10:09:01 1997 UTC (27 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)

allow syntax of the form "route add -net 192.168.64.0/20 <destaddr>";
phk@freebsd, man page changes done by me 'cause i'm a bit bored

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 14 17:23:53 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)

merge netbsd changes for show command
yet more buf oflows (provided by netbsd!)
an attempt at 64 bit cleanliness
-Wall

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 16 09:26:10 1996 UTC (27 years, 9 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

ipx.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 23 14:32:22 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

update rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:47 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:47 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.