From: florian Date: Tue, 16 Mar 2021 17:39:15 +0000 (+0000) Subject: We can't learn anything interesting from RTM_NEWADDR, stop handling X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5651a56397c114a4c5fd108371818658021ee433;p=openbsd We can't learn anything interesting from RTM_NEWADDR, stop handling it. --- diff --git a/sbin/dhcpleased/dhcpleased.c b/sbin/dhcpleased/dhcpleased.c index a71fcbedbd7..e27a340b905 100644 --- a/sbin/dhcpleased/dhcpleased.c +++ b/sbin/dhcpleased/dhcpleased.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpleased.c,v 1.7 2021/03/07 18:39:11 florian Exp $ */ +/* $OpenBSD: dhcpleased.c,v 1.8 2021/03/16 17:39:15 florian Exp $ */ /* * Copyright (c) 2017, 2021 Florian Obser @@ -250,8 +250,7 @@ main(int argc, char *argv[]) AF_INET)) == -1) fatal("route socket"); - rtfilter = ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_NEWADDR) | - ROUTE_FILTER(RTM_PROPOSAL); + rtfilter = ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_PROPOSAL); if (setsockopt(frontend_routesock, AF_ROUTE, ROUTE_MSGFILTER, &rtfilter, sizeof(rtfilter)) == -1) fatal("setsockopt(ROUTE_MSGFILTER)"); diff --git a/sbin/dhcpleased/frontend.c b/sbin/dhcpleased/frontend.c index 6cd1cede715..fbbeb63fbb5 100644 --- a/sbin/dhcpleased/frontend.c +++ b/sbin/dhcpleased/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.4 2021/03/14 16:05:50 florian Exp $ */ +/* $OpenBSD: frontend.c,v 1.5 2021/03/16 17:39:15 florian Exp $ */ /* * Copyright (c) 2017, 2021 Florian Obser @@ -633,13 +633,6 @@ handle_route_message(struct rt_msghdr *rtm, struct sockaddr **rti_info) } } break; - case RTM_NEWADDR: - ifm = (struct if_msghdr *)rtm; - if_name = if_indextoname(ifm->ifm_index, ifnamebuf); - log_debug("RTM_NEWADDR: %s[%u]", if_name == NULL ? - "?" : if_name, ifm->ifm_index); - update_iface(ifm->ifm_index, if_name); - break; case RTM_PROPOSAL: if (rtm->rtm_priority == RTP_PROPOSAL_SOLICIT) { log_debug("RTP_PROPOSAL_SOLICIT");