diff options
| author | Roy Marples <roy@marples.name> | 2016-05-23 19:32:18 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-05-23 19:32:18 +0000 |
| commit | d6498967f8632a70fedfc33aa426c0f63f482124 (patch) | |
| tree | 1c2735d3b6bfc11297bf22ab6eaac0f40d353128 | |
| parent | 895bbd79decf488f1b9a5a120f6ad19111281f30 (diff) | |
| download | dhcpcd-d6498967f8632a70fedfc33aa426c0f63f482124.tar.xz | |
Restore setting of secs.
| -rw-r--r-- | dhcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
