+Don't release a link local address.
Use sysconf to detect if we have a working monotonic clock.
Only request NTP, NIS, etc if we have compiled that feature in.
dhcpcd --version now shows what compile time options were used.
|| state == STATE_REBINDING)
{
logger (LOG_INFO, "received SIGHUP, releasing lease");
- SOCKET_MODE (SOCKET_OPEN);
- xid = random ();
- if ((open_socket (iface, false)) >= 0)
- SEND_MESSAGE (DHCP_RELEASE);
- SOCKET_MODE (SOCKET_CLOSED);
+ if (! IN_LINKLOCAL (dhcp->address.s_addr)) {
+ SOCKET_MODE (SOCKET_OPEN);
+ xid = random ();
+ if ((open_socket (iface, false)) >= 0)
+ SEND_MESSAGE (DHCP_RELEASE);
+ SOCKET_MODE (SOCKET_CLOSED);
+ }
unlink (iface->infofile);
}
else