From cba2acdfacdf9615d580ef06013104fc72dbea41 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 27 Jun 2024 14:53:06 +0000 Subject: [PATCH] dhclient hasn't prodded us in a long time to renew a lease. OK deraadt --- sbin/dhcpleased/frontend.c | 14 +------------- 1 file changed, 1 insertion(+), 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 @@ -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); -- 2.20.1