summaryrefslogtreecommitdiff
path: root/sbin/route
AgeCommit message (Collapse)Author
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
2020-07-07Stop using make_addr() which trims trailing zeros of the netmask, setYASUOKA Masahiko
family and length field. This fixes route(8) to handle "::/0" properly. Also fix "route add -inet 0.0.0.0 -prefixlen 0 (gateway)" to work properly. ok kn
2020-01-19add some explicit tagging macros; OK kn@ on a previous versionIngo Schwarze
2020-01-15Replace duplicate error message with gai_strerror(3)kn
getaddrinfo(3) may fail for multiple reasons, but error message should be unique in general. OK bluhm
2019-11-22The DNS proposal list can (soon) be empty to signal a withdraw, relaxFlorian Obser
the size constraint to allow this to pass through the kernel. Looks good to deraadt@
2019-11-22Teach route(8) about RTP_PROPOSAL_UMBClaudio Jeker
2019-11-21output RTM_PROPOSALs more similar to other route messagesFlorian Obser
no objection krw@ who has further suggestions for improvement
2019-11-16Missing comma after RTM_PROPOSAL source.Kenneth R Westerback
ok bluhm@
2019-11-16When printing RTM_PROPOSAL and unspecified message types, print theKenneth R Westerback
interface name if known. As all the other message types do. ok bluhm@
2019-11-16When printing RTM_PROPOSAL messages use "if#" like all the otherKenneth R Westerback
messages, not "ifidx". ok bluhm@
2019-11-16More %d -> %u for unsigned values.Kenneth R Westerback
2019-11-16Whitespace nit.Kenneth R Westerback
ok bluhm@
2019-11-16rtm_version, rtm_type, rtm_msglen, rtm_index, rtm_priority, ifan_whatKenneth R Westerback
are u_char or u_short. So use %u instead of %d in printf(). ok bluhm@
2019-11-16Remove "(void)" casts from the 2 printf() statements thatKenneth R Westerback
had them. ok bluhm@
2019-11-09Add RTP_PROPOSAL_SOLICIT to allow unwind(8) to solicit DNS proposalsFlorian Obser
from slaacd and dhclient when it starts. Discussed with deraadt who notes that it's a bit odd to have this as a route priority. One idea is to have this as a dedicated route message and not a priority. But we want to move this forward and learn how it can be used so we are going with this for now. OK deraadt
2019-10-27Print interface index and name for RTM_NEWADDR, RTM_DELADDR andKenneth R Westerback
RTM_CHGADDRATTR messages. Be consistant and eliminate ':' after all 'name's. ok bluhm@
2019-10-25Forgot to add '\30AUTOONF4" to ifnetflags[].Kenneth R Westerback
route will now show "AUTOCONF4" in flags.
2019-08-31The algorithm creating the routing addresses in route(8) and arp(6)Alexander Bluhm
were still not correct. While the values written to the kernel are fine, the bytes for padding were taken from memory after the sockaddr structs. In route(8) the union of sockaddrs can be made larger, so that the padding is taken from there. In arp(8) the size of the struct is known. Copy only the struct and advance over the padding. The memory has been zeroed before. Merge all address size fixes from arp(8) into ndp(8). OK claudio@
2019-08-29The kernel uses rtm_addrs as a bit field for addresses that areAlexander Bluhm
included in the routing message. The significance of the bits has to be consistent with the order of the addresss. In route(8) store addresses in ascending order of RTA values. This allows to use MPLS routes together with route labels. OK mpi@ claudio@
2019-08-29route(8) used inet/inet6 autodetection also for the link addressAlexander Bluhm
type. Provide the address family AF_LINK and storage size of struct sockaddr_dl to the kernel when creating an IFP routing address. OK mpi@
2019-04-30elaborate a little on how route priorities work;Jason McIntyre
help/ok claudio
2019-04-17signpost the location of the text explaining routing table output a little ↵Jason McIntyre
better...
2019-03-31Restore -t behaviourkn
revision 1.178 from 23.10.2015 accidentially removed the tflag bits, turning `-t' into a NOOP. Found out the hard way during debug. OK deraadt
2019-01-23Make route(8) show the same flags in RTM_IFINFO messages asKenneth R Westerback
ifconfig(8) shows in its display of interface information. ok bluhm@
2019-01-22PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callsKenneth R Westerback
where the "wrong" #define was used. ok dlg@
2018-11-12Recognize and display new RTM_80211INFO messages.Kenneth R Westerback
Original diff from phessler@. Many suggestions and tweaks from claudio@, stsp@, anton@. ok claudio@ stsp@ anton@ phessler@
2018-10-15Trust the resolver to give us a sockaddr_in6 sized objectFlorian Obser
if we ask for AF_INET6. OK kn, deraadt