First stab at IPv6-only preferred from RFC8925.
authorflorian <florian@openbsd.org>
Sat, 25 Nov 2023 12:00:39 +0000 (12:00 +0000)
committerflorian <florian@openbsd.org>
Sat, 25 Nov 2023 12:00:39 +0000 (12:00 +0000)
commit6d7478f075cd153e49d5a994c743847462f5b8a6
treedc04aa2345fb5e6b0152bc1e2213440a6d720c80
parentfd4df4ff7d3acd06532131d0980162488a03274a
First stab at IPv6-only preferred from RFC8925.

This lets dhcpleased(8) request "IPv6-only preferred". If the
server replies with this option dhcpleased stops and does not request
a lease and deconfigures IPv4 on the interface.

For now this is pretty much useless unless one dynamically configures
pf(4) to act as a CLAT. gelatod(8) from ports can help with this.

However, this helps me while hacking on a kernel based stateless CLAT
by moving dhcpleased out of the way while having an IPv6-mostly
network configured to compare behaviour with macOS.

Input jmc
OK phessler
Input & OK sthen
sbin/dhcpleased/dhcpleased.conf.5
sbin/dhcpleased/dhcpleased.h
sbin/dhcpleased/engine.c
sbin/dhcpleased/frontend.c
sbin/dhcpleased/parse.y
sbin/dhcpleased/printconf.c