diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -780,9 +780,7 @@ rip_ctlinput(int cmd, struct sockaddr *sa, void *vip) { struct in_ifaddr *ia; - struct ifnet *ifp; int err; - int flags; NET_EPOCH_ASSERT(); @@ -817,12 +815,6 @@ if (ia == NULL || (ia->ia_flags & IFA_ROUTE)) return; ifa_ref(&ia->ia_ifa); - flags = RTF_UP; - ifp = ia->ia_ifa.ifa_ifp; - - if ((ifp->if_flags & IFF_LOOPBACK) - || (ifp->if_flags & IFF_POINTOPOINT)) - flags |= RTF_HOST; err = ifa_del_loopback_route((struct ifaddr *)ia, sa);