-/* $OpenBSD: frontend.c,v 1.14 2021/07/26 09:26:36 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.15 2021/07/27 18:17:37 florian Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
log_debug("RTP_PROPOSAL_SOLICIT");
frontend_imsg_compose_engine(IMSG_REPROPOSE_RDNS,
0, 0, NULL, 0);
+ } else if (rtm->rtm_flags & RTF_PROTO3) {
+ uint32_t if_index;
+ 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_CTL_SEND_REQUEST,
+ 0, 0, &if_index, sizeof(if_index));
}
break;
default: