dhclient hasn't prodded us in a long time to renew a lease.
authorflorian <florian@openbsd.org>
Thu, 27 Jun 2024 14:53:06 +0000 (14:53 +0000)
committerflorian <florian@openbsd.org>
Thu, 27 Jun 2024 14:53:06 +0000 (14:53 +0000)
OK deraadt

sbin/dhcpleased/frontend.c

index 9dbe887..fdc4ae8 100644 (file)
@@ -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);