summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-25 09:51:21 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-25 09:51:21 +0000
commit0df99b969a1c93a9608031012e0d999dc2c29416 (patch)
tree27b224d37ee3130db50225245519b280f86302ac /sys/netinet
parent83e4067068dcfedbf87724c8da3da3191f29c3f9 (diff)
Ensure that RTF_LOCAL route entries always stay UP.
Local route entries, being now attached to their corresponding interface, are susceptible to be brought DOWN when a link state change occurs. When this happens locally configured addresses are no longer reachable. So keep the previous (original) behavior by forcing such route entries to always be UP. ok sthen@, claudio@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 35c915b4789..b630e798a3d 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.255 2015/09/11 19:34:20 dlg Exp $ */
+/* $OpenBSD: ip_input.c,v 1.256 2015/09/25 09:51:20 mpi Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -725,7 +725,7 @@ in_ouraddr(struct mbuf *m, struct ifnet *ifp, struct in_addr ina)
m->m_flags |= M_BCAST;
}
- return (ISSET(ia->ia_ifp->if_flags, IFF_UP));
+ return (1);
}
/*