Hi tech@,

I'm following -current and recently observed that my laptop
startup hangs at execution of netstart (when dhclient is called).
Apparently, this is because I use the following dhclient.conf
(since a couple of OpenBSD releases - so the issue is not in the config):

interface "bge0" {
        link-timeout 0;
}

I attempted to read/understand some of the dhclient code to track
the issue down. I'm still not entirely sure but I thought I share
the follwing patch with you - it solves the link-timeout 0 
case for me. As well it matches how "tickstart" is setup at other
places in the same file.

Regards
Holger



Index: dhclient.c
===================================================================
RCS file: /cvs/src/sbin/dhclient/dhclient.c,v
retrieving revision 1.561
diff -u -p -u -r1.561 dhclient.c
--- dhclient.c  8 Feb 2018 08:22:31 -0000       1.561
+++ dhclient.c  8 Feb 2018 22:52:38 -0000
@@ -694,7 +694,7 @@ state_preboot(struct interface_info *ifi
 
        time(&cur_time);
 
-       tickstart = ifi->startup_time + 3;
+       tickstart = ifi->first_sending + 3;
        tickstop = ifi->startup_time + config->link_timeout;
 
        ifi->linkstat = interface_status(ifi->name);

Reply via email to