summaryrefslogtreecommitdiff
path: root/sbin/route
AgeCommit message (Collapse)Author
2024-05-09ctime(3) and ctime_r(3) can fail when timestamps are way off.Florian Obser
Add missing error checks to all calls under sbin/ Input kettenis, millert OK millert
2024-04-28gmtime(3) / locatime(3) can fail when timestamps are way off.Florian Obser
Add missing error checks to all calls under sbin/ Input & OK millert
2023-08-02add EXIT STATUS section with information for the exec subcommandaisha
patch by Matthew Martin <phy1729 AT gmail DOT com>
2023-04-06Markup route flags to get tagsKlemens Nanni
":tM" to jump to the definition of RTF_MODIFIED is easier and faster than manually navigating there. OK schwarze
2023-03-18sourceaddr:Jason McIntyre
- show that -ifp and "address" do not mix - show how to reset value (from claudio) - tweak text ok claudio
2023-03-17Adjust sourceaddr argument parser.Claudio Jeker
Only print the sourceaddrs if no argument was passed. If arguemnts are set make sure that either and address is present or that an ifp was given. This make the command behave a more like other route commands. OK deraadt@
2023-03-15tweak sourceaddr:Jason McIntyre
- 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
2023-03-15For now pass AF_UNSPEC to printsource() to ensure that both inet and inet6Claudio Jeker
addrs are fetched from the kernel. This needs more cleanup.
2023-03-15Make route sourceaddr always print the used addresses for inet and inet6.Claudio Jeker
Print 'default' if no sourceaddr is set and the default algorithm is used. With and OK kn@ deraadt@
2023-03-07restore tags for commands lost in r1.112 restructuring; OK jmcKlemens Nanni
2023-03-07mpls gateway clarification; from claudioJason McIntyre
2023-03-03namservers -> nameserversJonathan Gray
2023-03-02restructure the page into one single list for all routing commands;Jason McIntyre
while there, whack anything either out of date or not useful joint work with claudio
2023-02-21some nameserver proposal bits:Jason McIntyre
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
2023-02-18Missing spaceClaudio Jeker
2023-02-14Add -mpls to the route monitor case. It is an allowed address family.Claudio Jeker
OK sthen@ florian@
2023-02-14Typofix -ssthresh in HISTORYKlemens Nanni
2022-12-22Denote multiple arguments with 'arg ...' not 'args'Klemens Nanni
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
2022-12-22it seems we made a separate list for the two sourceaddr commands,Jason McIntyre
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;
2022-12-22move the flag mappings displayed by "route show" from netstat(1) to route(8):Jason McIntyre
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
2022-11-19fix vertical spacing in previousKlemens Nanni
2022-11-09ndp, route, netstat: adjust ipv6 address widthKlemens Nanni
It has been annoying me for too long that fully specififed GUAs (2001:0db8:3333:4444:5555:6666:7777:8888) mess up alignment. systat(1)'s netstat is the only view that has a big enough limit and thus never misaligns. Unify ndp(8), route(8) and netstat(1) views to always align nicely. Feedback OK claudio
2022-11-09add an example for adding a cloning host route to reach a gateway which isStuart Henderson
outside the subnet, some hosting providers use this. info from Eric JACQUOT ok florian kn phessler
2022-07-29Mention id(1) -R, reference rtable(4) in route(8)Klemens Nanni
Fix "ps -o rtable" example description while here. Initial idea to mention id -R in route(8) from sthen Feedback OK sthen
2022-06-19There is no reason to print the RTF_DONE bit in the routing table output.Claudio Jeker
It is now set on all routes (and before it was never set). OK tb@ anton@
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2021-11-10Give sppp(4) its own RTP_PROPOSAL priorityBjorn Ketelaars
OK semarie@
2021-10-26Generalise "nameserver" workingsKlemens Nanni
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
2021-10-23Move "-T" and "exec" support out of SMALLKlemens Nanni
Ramdisk kernels lack support for alternate routing tables, so "-T N" for N > 0 always fails. "route -T0 exec" is just a useless "exec", so zap it completely. OK benno
2021-10-22Make ":tdelete" workKlemens Nanni
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.
2021-08-30Fix max nameserver proposals limitKlemens Nanni
Count the total number of proposals and not five per address family each. Don't print ignored addresses by default anymore and leave that to `-v'. OK benno
2021-08-30Clarify how dns proposals are replaced not added per interfaceKlemens Nanni
OK benno
2021-08-29nameserver command requires an interface argumentKlemens Nanni
2021-08-05for nameserver usage, show multiple addresses as "address ..."; ok bennoJason McIntyre
while here, Pa->Xr for resolv.conf;
2021-08-05superflous -> superfluousTheo Buehler
2021-08-05sort the new nameserver text; rework it a little; sort SEE ALSO;Jason McIntyre
2021-08-04Add a new 'nameserver' command to route(8).Sebastian Benoit
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@
2021-06-26delete extra explanations in the usage: messages which are describedTheo de Raadt
far better in the manual pages ok jmc
2021-03-12INET6_NOPRIVACY is called AUTOCONF6TEMP now, missed during rename.Florian Obser
2021-02-24show AF for DNS proposal messages; ok claudio bluhmTheo de Raadt
2021-01-30Don't print an empty line at the end of `route sourceaddr`Daniel Jakots
ok denis
2021-01-24Add missing __KAME__ markers.Florian Obser
OK claudio
2021-01-16Only recover the KAME embedded scope if the sin6_scope_id filed isClaudio Jeker
not initalized. If it is set assume that the scope was already recovered. This is required to get rid of all this scope madness in the long run. OK bluhm@ florian@
2021-01-02add three missing .Dv macros,Ingo Schwarze
and move punctuation out of two that are already there
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2020-11-25Teach route(8) about the names of the IEEE80211_F_* flags.Kenneth R Westerback
2020-11-07Rework source IP address setting.denis
- 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@
2020-10-30Source address set can be printeddenis
2020-10-29Add feature to force the selection of source IP addressdenis
Based/previous work on an idea from deraadt@ Input from claudio@, djm@, deraadt@, sthen@ OK deraadt@
2020-09-15"Route show" and "netstat -r" provide formatting for routing tables withpamela
sufficient space to display v4 addresses cleanly, but which truncate v6 addresses. The -n flag on each already provides additional column width for IPv6 addresses. Make this formatting the default. OK phessler kn