History log of /openbsd/usr.sbin/rad/rad.h (Results 1 – 25 of 28)
Revision Date Author Comments
# 20fc6e8e 31-May-2024 florian <florian@openbsd.org>

Prefixes delegated via DHCPv6 have a lifetime, honour it.

The "auto prefix" feature derives the prefix to announce from a
configured IPv6 address. If that address has a vltime / pltime use
that valu

Prefixes delegated via DHCPv6 have a lifetime, honour it.

The "auto prefix" feature derives the prefix to announce from a
configured IPv6 address. If that address has a vltime / pltime use
that value in router advertisements instead of statically configured
values.

We also need to count down the vltime / pltime as time progresses.

testing Ryan Vogt
testing & OK bket@, jmatthew@

show more ...


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


# 639a58ba 23-Apr-2024 florian <florian@openbsd.org>

Implement RFC 4191 default router preference.

OK phessler, kn

(Committing from a ferry somewhere on the English channel. Sadly the
free WiFi does not provide IPv6.)


# 462fa675 27-Apr-2023 phessler <phessler@openbsd.org>

RFC 9096 changes the default timers for prefix preferred and valid lifetimes,
so update rad(8) to the new ones.

OK florian@


# 3a50f0a9 28-Dec-2022 jmc <jmc@openbsd.org>

spelling fixes; from paul tagliamonte
any parts of his diff not taken are noted on tech


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


# a14293ea 23-Mar-2022 florian <florian@openbsd.org>

Rate limit router advertisements according to RFC 4861 6.2.6. In
particular make sure to send at most one multicast advertisement every
three seconds.
input & OK deraadt


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

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


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


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


# b17c900d 02-Mar-2019 pamela <pamela@openbsd.org>

Introduce the IMSG_DATA_SIZE() macro to replace recurring math on imsg.hdr.len to shorten and simplify code.
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


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


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

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


# 56e17cbe 15-Jul-2018 florian <florian@openbsd.org>

nuke newd leftover


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

pass control socket in from main


# 48e174fd 13-Jul-2018 florian <florian@openbsd.org>

pass in route socket from main; stub out handling for now


# 118c7671 12-Jul-2018 florian <florian@openbsd.org>

use _rad user


# 92b9e3a9 11-Jul-2018 florian <florian@openbsd.org>

cleanly shutdown by sending advertisement with lifetime 0


# 4a78c7cf 11-Jul-2018 florian <florian@openbsd.org>

Send a RA with router lifetime of 0 when an interface is removed from
the config.

RFC 4861, 6.2.5:
[...] the router SHOULD transmit one or more (but not more than
MAX_FINAL_RTR_ADVERTISEMENTS) final

Send a RA with router lifetime of 0 when an interface is removed from
the config.

RFC 4861, 6.2.5:
[...] the router SHOULD transmit one or more (but not more than
MAX_FINAL_RTR_ADVERTISEMENTS) final multicast Router Advertisements on
the interface with a Router Lifetime field of zero.

show more ...


# 0c40990e 11-Jul-2018 florian <florian@openbsd.org>

Detect when a router advertisement packet changes due to config
change and if it does send a new advertisement.

The way this is implemented gives us various things for free:
- periodic sending of ro

Detect when a router advertisement packet changes due to config
change and if it does send a new advertisement.

The way this is implemented gives us various things for free:
- periodic sending of router advertisements
- send initial advertisement for every interface on startup

show more ...


12