dhcpd(8)
: use UDP sockets instead of BPF
Contributed by Peter N. M. Hansteen on from the modernizing BPFoonery dept.
dhcpd(8)
is not quite as reliable as one would want in providing the requested
data to the actual requestor.
After some rounds of discussion and experimentation,
David Gwynne (dlg@
) is circulating a
diff
on tech@
that switches the daemon to use
UDP
sockets instead of
bpf.
The motivation is summarized as,
tl;dr this replaces bpf with udp sockets in dhcpd, mostly to make it better at replying with the ip that requests were sent to.
and the full message, with the subject dhcpd(8): use UDP sockets instead of BPF reads,
List: openbsd-tech Subject: dhcpd(8): use UDP sockets instead of BPF From: David Gwynne <david () gwynne ! id ! au> Date: 2025-06-13 3:29:20 tl;dr this replaces bpf with udp sockets in dhcpd, mostly to make it better at replying with the ip that requests were sent to. ive been hacking on this because of a problem at work, which i want to solve by setting up a bunch of "anycast" dhcp servers. ie, i want to have multiple dhcpd on separate servers with the same IP assigned as an alias on all of them.