summaryrefslogtreecommitdiff
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-12 20:50:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-12 20:50:18 +0000
commitb04258746534bc769a4b74b4b4aef6eaa0166f7d (patch)
treec1fa37e7c1ccbbea7a9c656df2225f1b205a2ef9 /sys/netinet/in.c
parent83d68c4cae7b8cb7c4c76b2d607e9444000f73b1 (diff)
Now that rtrequest1(9) properly sets RTF_UP for newly added route,
stop passing it in every rt_ifa_add(9) calls. ok claudio@
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 77f1c4f682d..084951ef8bd 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.122 2015/09/09 20:12:36 dlg Exp $ */
+/* $OpenBSD: in.c,v 1.123 2015/09/12 20:50:17 mpi Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -713,7 +713,7 @@ in_purgeaddr(struct ifaddr *ifa)
int
in_addhost(struct in_ifaddr *ia, struct sockaddr_in *dst)
{
- return rt_ifa_add(&ia->ia_ifa, RTF_UP|RTF_HOST, sintosa(dst));
+ return rt_ifa_add(&ia->ia_ifa, RTF_HOST, sintosa(dst));
}
int
@@ -731,13 +731,12 @@ in_insert_prefix(struct in_ifaddr *ia)
struct ifaddr *ifa = &ia->ia_ifa;
int error;
- error = rt_ifa_add(ifa, RTF_UP | RTF_CLONING | RTF_CONNECTED,
- ifa->ifa_addr);
+ error = rt_ifa_add(ifa, RTF_CLONING | RTF_CONNECTED, ifa->ifa_addr);
if (error)
return (error);
if (ia->ia_broadaddr.sin_addr.s_addr != 0)
- error = rt_ifa_add(ifa, RTF_UP | RTF_HOST | RTF_BROADCAST,
+ error = rt_ifa_add(ifa, RTF_HOST | RTF_BROADCAST,
ifa->ifa_broadaddr);
return (error);