Re: ndp(1) and arp(1) enhancements for easier scripting of IPv6 prefix delegation

Martin Husemann <[email protected]> Sun, 21 Jun 2026 12:38:56 +0200
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
On Sun, Jun 21, 2026 at 12:32:40PM +0200, Tobias Nygren wrote:
> I have a convoluted orchestration that starts with a dhcpcd hook script.
> dhcpcd sets a bunch of environment variables with information about the
> delegation.

Yes, I do that too, the hook script checks for the correct interface name
and the "DELEGATED6" $reason.

It works quite well (and is tested at each boot, as my original /etc/npf.conf
has no hardcoded prefix embedded and only passes packets for fe80:...;
when the prefix is delegated the enhanced version with public addresses
is reloaded).

Martin