grace period of silence before emitting "<if>: no lease...", even if
the link has taken a few secocnds to come up. 'link-timoeut' remains
the hard deadline for going daemon.
-/* $OpenBSD: dhclient.c,v 1.705 2021/02/27 17:44:58 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.706 2021/02/28 17:33:45 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
if (printmsg)
fprintf(stderr, "got %s\n", preamble);
preamble_sent = 0;
- if (strcmp("link", preamble) == 0)
+ if (strcmp("link", preamble) == 0) {
linkup = 1;
+ /* New silent period for "no lease ... got lease". */
+ timespecadd(&now, &grace_intvl, &grace);
+ }
break;
case TICK_WAIT:
if (printmsg)