]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Restore setting of secs.
authorRoy Marples <roy@marples.name>
Mon, 23 May 2016 19:32:18 +0000 (19:32 +0000)
committerRoy Marples <roy@marples.name>
Mon, 23 May 2016 19:32:18 +0000 (19:32 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index ade23e05fa70ae66c87ab368b5c9cd546141d2f0..29a400dcc10157a78d1c7c71f47029d79938fbf3 100644 (file)
--- 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)