Index | Thread | Search

From:
Florian Obser <florian@openbsd.org>
Subject:
Re: dhcpd(8): use UDP sockets instead of BPF
To:
tech@openbsd.org
Date:
Sun, 15 Jun 2025 11:28:46 +0200

Download raw body.

Thread
On 2025-06-13 16:29 +02, Alexander Bluhm <bluhm@openbsd.org> wrote:
> This brings us closer to IPv6 where you need pf rules for router
> discovery.  Right now the dhcp rule is stateless as broadcast an
> multicast addresses do not match.  sashan@ has a diff to make a
> state for dhcp match on both directions.  pf also handles neigbor
> discovery special, although it does not work in all situations.
>
> So if we switch to dhcpd UDP sockets, I would like to see sashan@'s
> diff commited.

I was playing around with sashan's diff a lot during j2k25 and I *think*
it wasn't working correctly quite yet. But I was juggling too many diffs
at the time and the network was too noisy to figure out what was going
on. I try to find some cycles soon to pick this up again.

(This was in the context of dhcp client side, but I think the tests
would still be correct and valuable for server side as well.)

>
> bluhm

-- 
In my defence, I have been left unsupervised.