dhcpcd is a DHCPv4/IPv4LL/IPv6RA/DHCPv6 quad stack client.It satisfies all the goals of the OpenBSD GSOC 2014 DHCP and related projects.
However it has no privilege separation at this time.
Tested on i386/OpenBSD-5.4 and OpenBSD-current. Two notes on this port specific to OpenBSD:1) I added a check to disable the use of posix_spawn(3) because it fails with and exit status of 127 on OpenBSD. The same code works fine on Linux, NetBSD and FreeBSD so I assume it's a bug with OpenBSD. I don't know enough of OpenBSD internals to investigate or fix. dhcpcd ships with a posix_spawn wrapper around fork(2) and vfork(2) that good enough to use instead though.
2) OpenBSD-current (about 2 weeks old) failed to use the O_NONBLOCK flag when opening a bpf(4) device. This works fine on OpenBSD-5.4, I don't know if it's fixed in -current but I added an #ifdef to force it on which works fine.
I'm not subbed to this list, so please include me on any replies. Thanks Roy
net_dhcpcd.tgz
Description: GNU Zip compressed data
