summaryrefslogtreecommitdiff
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-10-02 12:12:52 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-10-02 12:12:52 +0000
commit0be45033cb5620385299fd442398807db5bb60bb (patch)
tree7c48cf0e6dc6266b0bcefc475028e258afedaf24 /sys/netinet/in.c
parent5146134bd40c020f7fab9aef11e34201b86d893c (diff)
There is no point in trying to purge the default host route for
loopback interfaces because we no longer add it. ok claudio@
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 452c7d5f0be..0725446536f 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.104 2014/10/01 16:35:45 mpi Exp $ */
+/* $OpenBSD: in.c,v 1.105 2014/10/02 12:12:51 mpi Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -596,10 +596,10 @@ in_lifaddr_ioctl(struct socket *so, u_long cmd, caddr_t data,
void
in_ifscrub(struct ifnet *ifp, struct in_ifaddr *ia)
{
- if ((ifp->if_flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) == 0)
- in_scrubprefix(ia);
- else
+ if (ISSET(ifp->if_flags, IFF_POINTOPOINT))
in_scrubhost(ia);
+ else if (!ISSET(ifp->if_flags, IFF_LOOPBACK))
+ in_scrubprefix(ia);
}
/*