summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-15 09:30:11 +0000
committerRoy Marples <roy@marples.name>2009-01-15 09:30:11 +0000
commitb66d49d3863e7ef38648ed59789bf0343a2a4798 (patch)
treeab5c66ba2d61a8147c212b41ade6ecec0a2a8530 /dhcpcd.c
parentbd487e6c771dac18b2a2b8b62c5127b09f57b002 (diff)
downloaddhcpcd-b66d49d3863e7ef38648ed59789bf0343a2a4798.tar.xz
New configure reasons NOCARRIER and NAK instead of just sending EXPIRE.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index f9e120cf..3b466a4b 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -449,7 +449,7 @@ handle_dhcp(struct interface *iface, struct dhcp_message **dhcpp)
/* We should restart on a NAK */
if (type == DHCP_NAK) {
log_dhcp(LOG_WARNING, "NAK:", iface, dhcp);
- drop_config(iface, "EXPIRE");
+ drop_config(iface, "NAK");
unlink(iface->leasefile);
delete_event(iface->raw_fd);
close(iface->raw_fd);
@@ -726,7 +726,7 @@ handle_carrier(const char *ifname)
syslog(LOG_INFO, "%s: carrier lost", iface->name);
close_sockets(iface);
delete_timeouts(iface, start_expire, NULL);
- drop_config(iface, "EXPIRE");
+ drop_config(iface, "NOCARRIER");
}
break;
default: