From: Florian Obser Subject: Re: security/vpnc: dhclient -> ifconfig inet autoconf To: ports@openbsd.org Date: Fri, 12 Jul 2024 11:23:43 +0200 On 2024-07-12 03:05 -06, "Theo de Raadt" wrote: > Stuart Henderson wrote: > >> This change won't work directly as the following lines currently need >> blocking until dhcp has fetched an address but I don't think it's worth it. > > Right. > > We have entered a world where dynamic address negotiation is async. > But then, it always was. > Independent of the port at hand (which indeed should be nuked from orbit), dhcpcleasctl(8) has this: -w maxwait Specify the maximum number of seconds to wait for interface to be configured. The default is 10 seconds. so running "dhcpleasctl $IF" waits max 10 seconds. -w is parsed thusly: maxwait = strtonum(optarg, 1, INT_MAX, &errstr); ... in case there is something else that absolutely wants to wait until a lease has been configured. -- In my defence, I have been left unsupervised.