History log of /openbsd/usr.sbin/rad/rad.c (Results 1 – 25 of 31)
Revision Date Author Comments
# ce7279d8 21-May-2024 jsg <jsg@openbsd.org>

remove prototypes with no matching function and externs with no var
partly checked by millert@


# 30ca3407 17-May-2024 florian <florian@openbsd.org>

Send source link-layer address option in router advertisements.

With this, hosts immediately learn the layer 2 (i.e. ethernet mac)
address of their default router and don't need to do another round

Send source link-layer address option in router advertisements.

With this, hosts immediately learn the layer 2 (i.e. ethernet mac)
address of their default router and don't need to do another round
trip.

It also turns out that apple devices (macOS & iOS) install the default
route as what they call "interface scoped" if a DNS option is present
and the source link-layer address option is absent. This effectively
makes the default route unusable.

Problem with fruit devices tracked down & diff by Ryan Vogt (rvogt.ca
AT gmail), thanks!

OK sthen, bket

show more ...


# 6bae335d 19-Apr-2023 jsg <jsg@openbsd.org>

remove duplicate includes


# 5207bb19 15-Oct-2022 florian <florian@openbsd.org>

Implement RFC 8781 PREF64 router advertisement option.

With this clients can learn the presence and used prefix for Network
Address and Protocol Translation between IPv6 and IPv4 (NAT64).

Apparentl

Implement RFC 8781 PREF64 router advertisement option.

With this clients can learn the presence and used prefix for Network
Address and Protocol Translation between IPv6 and IPv4 (NAT64).

Apparently there is support in mobile devices as well as in macOS.

This option, together with the the dhcp "IPv6-only preferred"
option (108) enables the Customer-side transLATor (CLAT) on macOS so
IPv4 literals can be used in IPv6-only networks.

Input & OK kn

show more ...


# e0daf9a7 27-Feb-2021 florian <florian@openbsd.org>

Path #defines are traditionally prefixed with _PATH.
Pointed out by deraadt


# 032fa683 19-Jan-2021 florian <florian@openbsd.org>

Make imsg event structs static to fix -fno-common.
Follows claudio's lead in ospfd et al.
Problem reported by mortimer.


# 3c6be478 19-Jan-2021 florian <florian@openbsd.org>

No need for a global rad_process; unbreaks -fno-common.
Problem reported by mortimer


# e88dba76 01-Dec-2020 florian <florian@openbsd.org>

Let rad(8) handle all rdomains in a single daemon, similar to previous
work in slaacd.
Suggested / requested by tb who showed me previous work by reyk which
unfortunately predated my work in slaacd a

Let rad(8) handle all rdomains in a single daemon, similar to previous
work in slaacd.
Suggested / requested by tb who showed me previous work by reyk which
unfortunately predated my work in slaacd and followed a different
pattern to that done in slaacd.
Testing & OK tb

show more ...


# 4bf8a5d4 26-Jun-2020 bket <bket@openbsd.org>

Replace SIMPLEQ concatenation loops with SIMPLEQ_CONCAT

As a result *ra_rdnss and *ra_dnssl are not used any more, and can be removed.
While here remove spurious space.

OK florian@, millert@


# 03aa2005 30-Mar-2020 florian <florian@openbsd.org>

Use defines instead of raw numbers for intervals specified by RFC
4861. No binary change.
While here consistently use #define<tab> instead of #define<space>.


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# ef4f5895 31-Mar-2019 yasuoka <yasuoka@openbsd.org>

Avoid calling dup2(oldd, newd) when oldd == newd. In that case the
descriptor keeps CLOEXEC flag then it will be closed unexpectedly by
exec().

ok tedu florian


# 0eb5c43b 12-Mar-2019 pamela <pamela@openbsd.org>

In the manner of recent changes to unwind(8) and slaacd(8), make imsg
processing more paranoid. Call fatalx() for imsg size mismatches or
unexpected/missing imsg fd.
OK florian@


# e95cbeb2 29-Jan-2019 florian <florian@openbsd.org>

We don't need IMSG_SHUTDOWN, we can just close the sockets.
pointed out by deraadt


# b47fcd70 22-Jan-2019 krw <krw@openbsd.org>

PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls
where the "wrong" #define was used.

ok dlg@


# 16c642d1 16-Sep-2018 bluhm <bluhm@openbsd.org>

With prefixlen 128, mask_prefix() in rad(8) caused a stack overflow
in the config parser. Add an out of bounds check for the in6_addr.
OK florian@


# 11806809 05-Aug-2018 mestre <mestre@openbsd.org>

Since -s argument is no longer checked, during reexec, the argv size then must
be shortened by 1.

OK florian@


# 1258db73 04-Aug-2018 florian <florian@openbsd.org>

Leave the control socket behind on shutdown. It doesn't hurt anyone.
On the other hand it is much more powerful to get rid of cpath; rad is
no longer allowed to change anything on the filesystem.
Tri

Leave the control socket behind on shutdown. It doesn't hurt anyone.
On the other hand it is much more powerful to get rid of cpath; rad is
no longer allowed to change anything on the filesystem.
Triggered by mestre@'s work to fix unlinking in other daemons and a
question from deraadt@
OK mestre

show more ...


# 8815eebd 03-Aug-2018 florian <florian@openbsd.org>

Move dns settings to global options so that they don't need to be
repeated in every interface block - they can still be overwritten
on a per interface basis.
Pointed out by, tweaks & OK sthen


# ca3626e0 20-Jul-2018 florian <florian@openbsd.org>

No need to copy rdns_lifetime around with an IMSG, it gets send to the
engine end frontend as part of ra_iface_conf.

Spotted after explaining to bket@ that a similar pattern is not needed
for the mt

No need to copy rdns_lifetime around with an IMSG, it gets send to the
engine end frontend as part of ra_iface_conf.

Spotted after explaining to bket@ that a similar pattern is not needed
for the mtu option.

show more ...


# 2ef977c0 20-Jul-2018 florian <florian@openbsd.org>

Fix mem leaks on config reload:
- always free struct ra_iface_conf with free_ra_iface_conf()
- free_ra_iface_conf() needs to free the recently added
nameserver and search list


# cea17583 20-Jul-2018 bket <bket@openbsd.org>

Introduce MTU option.

The MTU option is used in Router Advertisement messages to ensure that
all nodes on a link use the same MTU value in those cases where the link
MTU is not well known.

Feedback

Introduce MTU option.

The MTU option is used in Router Advertisement messages to ensure that
all nodes on a link use the same MTU value in those cases where the link
MTU is not well known.

Feedback (thank you!) and OK from florian@

show more ...


# e38f348d 18-Jul-2018 florian <florian@openbsd.org>

Stop our own router advertisements from looping back to us.
Pointed out by semarie@


# 4c40b7e8 15-Jul-2018 florian <florian@openbsd.org>

Implement RFC 8106: IPv6 Router Advertisement Options for DNS
Configuration.


# 8015e988 13-Jul-2018 florian <florian@openbsd.org>

add missing IMSG_STARTUP; unclear why this ever worked


12