Neat! I’m unable to read this name without seeing the “please” in there, much like the “meow” in “homeowner”.
I’ve never seen that re: homeowner before. Thanks, I hate it. :|
There is already a dhcpclient process. What’s the use of this new one?
Maybe there is more, here is what I saw on my system so far:
Another thing I forget to mention and very much like about all software written by florian@. The daemon requires no configuration at all. You start it up and it does exactly what it should without turning any knobs, writing config files, etc
dhclient(8) is just that: a client process. dhcpleased(8) is a daemon that will handle all interfaces on the host that are set for auto configuration of ipv4 addresses and acquire addresses for them.
Other platforms do similar things, one example being dhcpcd: https://wiki.archlinux.org/index.php/Dhcpcd
I was giving this a shot earlier after it first entered -current snapshots and was unable to get the default IPv4 route set with the gateway from my dhcp server. This is after removing dhcp from my hostname.if and setting AUTOCONF4 on the interface. (I’m not certain if removing dhcp is correct, but /etc/netstart will still use dhclient if you specify that, and so I tried without.)
You need to remove ‘dhcp’ and add ‘inet autoconf’ to your /etc/hostname.if file. Then the system uses dhcpleased. If ‘dhcp’ is present, dhclient will be started
Perhaps lobsters is not the best place to report bugs.. but I did both of these and it was still not setting the route. Currently on:
kern.version=OpenBSD 6.9-beta (GENERIC.MP) #368: Sun Feb 28 21:10:13 MST 2021
When I up the interface, I see logged:
Mar 1 09:13:02 drifter dhcpleased: failed to send route message: No such process
Mar 1 09:13:06 drifter dhcpleased: failed to send route message: Network is unreachable
Even stranger is that I cannot manually add the route anymore.
# route add default 10.0.0.1
add net default: gateway 10.0.0.1: Network is unreachable
e: just saw this, and latest snap i’m on isn’t build with this commit yet: https://marc.info/?l=openbsd-cvs&m=161458351925096&w=2