From: Roy Marples Date: Mon, 23 May 2016 19:32:18 +0000 (+0000) Subject: Restore setting of secs. X-Git-Tag: v6.11.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6498967f8632a70fedfc33aa426c0f63f482124;p=thirdparty%2Fdhcpcd.git Restore setting of secs. --- diff --git a/dhcp.c b/dhcp.c index ade23e05..29a400dc 100644 --- a/dhcp.c +++ b/dhcp.c @@ -782,7 +782,7 @@ make_message(struct bootp **bootpm, const struct interface *ifp, uint8_t type) type != DHCP_DECLINE && type != DHCP_RELEASE) bootp->flags = htons(BROADCAST_FLAG); -#if 0 + if (type != DHCP_DECLINE && type != DHCP_RELEASE) { struct timespec tv; @@ -793,7 +793,7 @@ make_message(struct bootp **bootpm, const struct interface *ifp, uint8_t type) else bootp->secs = htons((uint16_t)tv.tv_sec); } -#endif + bootp->xid = htonl(state->xid); if (ifo->options & DHCPCD_BOOTP)