History log of /openbsd/sbin/route/route.c (Results 1 – 25 of 267)
Revision Date Author Comments
# a7b9eedc 09-May-2024 florian <florian@openbsd.org>

ctime(3) and ctime_r(3) can fail when timestamps are way off.
Add missing error checks to all calls under sbin/

Input kettenis, millert
OK millert


# b205d946 28-Apr-2024 florian <florian@openbsd.org>

gmtime(3) / locatime(3) can fail when timestamps are way off.

Add missing error checks to all calls under sbin/

Input & OK millert


# 2a0155c3 17-Mar-2023 claudio <claudio@openbsd.org>

Adjust sourceaddr argument parser.

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 com

Adjust sourceaddr argument parser.

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@

show more ...


# 2af8820c 15-Mar-2023 claudio <claudio@openbsd.org>

For now pass AF_UNSPEC to printsource() to ensure that both inet and inet6
addrs are fetched from the kernel. This needs more cleanup.


# 4c321e47 18-Feb-2023 claudio <claudio@openbsd.org>

Missing space


# d765bd22 14-Feb-2023 claudio <claudio@openbsd.org>

Add -mpls to the route monitor case. It is an allowed address family.
OK sthen@ florian@


# 881f6c5f 22-Dec-2022 kn <kn@openbsd.org>

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 ..

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

show more ...


# 6371cd0b 10-Nov-2021 bket <bket@openbsd.org>

Give sppp(4) its own RTP_PROPOSAL priority

OK semarie@


# 88147c8f 23-Oct-2021 kn <kn@openbsd.org>

Move "-T" and "exec" support out of SMALL

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

Move "-T" and "exec" support out of SMALL

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

show more ...


# c871fe0c 30-Aug-2021 kn <kn@openbsd.org>

Fix max nameserver proposals limit

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


# 3cfb3438 05-Aug-2021 tb <tb@openbsd.org>

superflous -> superfluous


# 70c459ce 04-Aug-2021 benno <benno@openbsd.org>

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

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@

show more ...


# b0cd659a 26-Jun-2021 deraadt <deraadt@openbsd.org>

delete extra explanations in the usage: messages which are described
far better in the manual pages
ok jmc


# 4ac0decd 12-Mar-2021 florian <florian@openbsd.org>

INET6_NOPRIVACY is called AUTOCONF6TEMP now, missed during rename.


# acae89f4 24-Feb-2021 deraadt <deraadt@openbsd.org>

show AF for DNS proposal messages; ok claudio bluhm


# e97c9788 24-Jan-2021 florian <florian@openbsd.org>

Add missing __KAME__ markers.
OK claudio


# 61791ef0 29-Dec-2020 benno <benno@openbsd.org>

getifaddrs() can return entries where ifa_addr is NULL. Check for this
before accessing anything in ifa_addr.
ok claudio@


# 612426fe 25-Nov-2020 krw <krw@openbsd.org>

Teach route(8) about the names of the IEEE80211_F_* flags.


# 72366f00 29-Oct-2020 denis <denis@openbsd.org>

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@


# 4b545c7b 07-Jul-2020 yasuoka <yasuoka@openbsd.org>

Stop using make_addr() which trims trailing zeros of the netmask, set
family and length field. This fixes route(8) to handle "::/0"
properly. Also fix "route add -inet 0.0.0.0 -prefixlen 0 (gateway

Stop using make_addr() which trims trailing zeros of the netmask, set
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

show more ...


# ca89ad4b 15-Jan-2020 kn <kn@openbsd.org>

Replace duplicate error message with gai_strerror(3)

getaddrinfo(3) may fail for multiple reasons, but error message should be
unique in general.

OK bluhm


# 7c9774e5 22-Nov-2019 florian <florian@openbsd.org>

The DNS proposal list can (soon) be empty to signal a withdraw, relax
the size constraint to allow this to pass through the kernel.
Looks good to deraadt@


# be9887ee 22-Nov-2019 claudio <claudio@openbsd.org>

Teach route(8) about RTP_PROPOSAL_UMB


# b2031451 21-Nov-2019 florian <florian@openbsd.org>

output RTM_PROPOSALs more similar to other route messages
no objection krw@ who has further suggestions for improvement


# 48269827 16-Nov-2019 krw <krw@openbsd.org>

Missing comma after RTM_PROPOSAL source.

ok bluhm@


1234567891011