summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-23 19:32:18 +0000
committerRoy Marples <roy@marples.name>2016-05-23 19:32:18 +0000
commitd6498967f8632a70fedfc33aa426c0f63f482124 (patch)
tree1c2735d3b6bfc11297bf22ab6eaac0f40d353128
parent895bbd79decf488f1b9a5a120f6ad19111281f30 (diff)
downloaddhcpcd-d6498967f8632a70fedfc33aa426c0f63f482124.tar.xz
Restore setting of secs.
-rw-r--r--dhcp.c4
1 files changed, 2 insertions, 2 deletions
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)