Send source link-layer address option in router advertisements.
authorflorian <florian@openbsd.org>
Fri, 17 May 2024 06:50:14 +0000 (06:50 +0000)
committerflorian <florian@openbsd.org>
Fri, 17 May 2024 06:50:14 +0000 (06:50 +0000)
commit30ca340796a98c20c16842cbd6e4c25de4709bdb
tree983df31203718e578defa35bd9ee81aa031c8a1c
parent5a862d4e1900d71aa06a40eb27bff9324277443d
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
usr.sbin/rad/frontend.c
usr.sbin/rad/parse.y
usr.sbin/rad/printconf.c
usr.sbin/rad/rad.c
usr.sbin/rad/rad.conf.5
usr.sbin/rad/rad.h