diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-07-06 09:01:59 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-07-06 09:01:59 +0000 |
commit | bf09045e38019c310187dabc2d69cd8eef8aae0c (patch) | |
tree | c475a347f30a7cee1f2ec859098fb62cd020af58 | |
parent | 0c088f94eaee3dbebaa5d8d850ecd9e4b41a0b9a (diff) |
We're now creating a connected route for every configured address so
there's no need to flag every address as IFA_ROUTE.
-rw-r--r-- | sys/netinet/in.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 1abb376564c..89c56060bbe 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in.c,v 1.118 2015/07/06 08:53:38 mpi Exp $ */ +/* $OpenBSD: in.c,v 1.119 2015/07/06 09:01:58 mpi Exp $ */ /* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */ /* @@ -588,8 +588,7 @@ in_ifscrub(struct ifnet *ifp, struct in_ifaddr *ia) if (ISSET(ifp->if_flags, IFF_POINTOPOINT)) in_scrubhost(ia, &ia->ia_dstaddr); else if (!ISSET(ifp->if_flags, IFF_LOOPBACK)) - if (ia->ia_flags & IFA_ROUTE) - in_remove_prefix(ia); + in_remove_prefix(ia); } /* @@ -740,9 +739,6 @@ in_insert_prefix(struct in_ifaddr *ia) error = rt_ifa_add(ifa, RTF_UP | RTF_HOST | RTF_BROADCAST, ifa->ifa_broadaddr); - if (!error) - ia->ia_flags |= IFA_ROUTE; - return (error); } @@ -755,8 +751,6 @@ in_remove_prefix(struct in_ifaddr *ia) if (ia->ia_broadaddr.sin_addr.s_addr != 0) rt_ifa_del(ifa, RTF_HOST | RTF_BROADCAST, ifa->ifa_broadaddr); - - ia->ia_flags &= ~IFA_ROUTE; } /* |