From: mpi Date: Thu, 22 Oct 2015 16:32:41 +0000 (+0000) Subject: Kill dead code, ifa is specified and won't change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5ba80c9fa51d78a9fadd6f60f14e5a131bb369b3;p=openbsd Kill dead code, ifa is specified and won't change. ok bluhm@ --- diff --git a/sys/net/route.c b/sys/net/route.c index 518715705fc..9af588ccaae 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.255 2015/10/22 15:37:47 bluhm Exp $ */ +/* $OpenBSD: route.c,v 1.256 2015/10/22 16:32:41 mpi Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1133,19 +1133,6 @@ rt_ifa_add(struct ifaddr *ifa, int flags, struct sockaddr *dst) error = rtrequest1(RTM_ADD, &info, prio, &rt, rtableid); if (error == 0) { - if (rt->rt_ifa != ifa) { - printf("%s: wrong ifa (%p) was (%p)\n", __func__, - ifa, rt->rt_ifa); - if (rt->rt_ifa->ifa_rtrequest) - rt->rt_ifa->ifa_rtrequest(RTM_DELETE, rt); - ifafree(rt->rt_ifa); - rt->rt_ifa = ifa; - rt->rt_ifp = ifa->ifa_ifp; - ifa->ifa_refcnt++; - if (ifa->ifa_rtrequest) - ifa->ifa_rtrequest(RTM_ADD, rt); - } - /* * A local route is created for every address configured * on an interface, so use this information to notify