summaryrefslogtreecommitdiff
path: root/sbin/dhcpleased
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-06-27 14:53:07 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-06-27 14:53:07 +0000
commitf4fc33eeb58530d8df3866e59ff95aeaa37789df (patch)
treea8c6380c0f7e7ea2926cbb03c479659bc0d8a868 /sbin/dhcpleased
parent1319f1cd767a5133c2039e03158d17219cf770e9 (diff)
dhclient hasn't prodded us in a long time to renew a lease.
OK deraadt
Diffstat (limited to 'sbin/dhcpleased')
-rw-r--r--sbin/dhcpleased/frontend.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sbin/dhcpleased/frontend.c b/sbin/dhcpleased/frontend.c
index 9dbe88716c1..fdc4ae8ca16 100644
--- a/sbin/dhcpleased/frontend.c
+++ b/sbin/dhcpleased/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.34 2024/06/03 17:58:33 deraadt Exp $ */
+/* $OpenBSD: frontend.c,v 1.35 2024/06/27 14:53:06 florian Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
@@ -809,18 +809,6 @@ handle_route_message(struct rt_msghdr *rtm, struct sockaddr **rti_info)
frontend_imsg_compose_engine(IMSG_REPROPOSE_RDNS,
0, 0, NULL, 0);
}
-#ifndef SMALL
- else if (rtm->rtm_flags & RTF_PROTO3) {
- char ifnamebuf[IF_NAMESIZE], *if_name;
-
- if_index = rtm->rtm_index;
- if_name = if_indextoname(if_index, ifnamebuf);
- log_warnx("\"dhclient %s\" ran, requesting new lease",
- if_name != NULL ? if_name : "(unknown)");
- frontend_imsg_compose_engine(IMSG_REQUEST_REBOOT,
- 0, 0, &if_index, sizeof(if_index));
- }
-#endif /* SMALL */
break;
default:
log_debug("unexpected RTM: %d", rtm->rtm_type);