diff options
author | 2016-09-01 11:26:44 +0000 | |
---|---|---|
committer | 2016-09-01 11:26:44 +0000 | |
commit | ca7b45206c0d8f447cc97e55e9d12ac31f93c814 (patch) | |
tree | 108e71f036ce8569ae314ca623e13cf35e71241a /sys/net/route.c | |
parent | struct client starts to become the kitchen sink. Move fastcgi data to (diff) | |
download | wireguard-openbsd-ca7b45206c0d8f447cc97e55e9d12ac31f93c814.tar.xz wireguard-openbsd-ca7b45206c0d8f447cc97e55e9d12ac31f93c814.zip |
Move the RTF_LOCAL check that only makes sense for userland to
route_output().
ok claudio@
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index e02600bd040..a02bb9dcf51 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.319 2016/08/31 08:13:17 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.320 2016/09/01 11:26:44 mpi Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -910,17 +910,6 @@ rtrequest_delete(struct rt_addrinfo *info, u_int8_t prio, struct ifnet *ifp, } #endif - /* - * Since RTP_LOCAL cannot be set by userland, make - * sure that local routes are only modified by the - * kernel. - */ - if ((rt->rt_flags & (RTF_LOCAL|RTF_BROADCAST)) && - (prio & RTP_MASK) != RTP_LOCAL) { - rtfree(rt); - return (EINVAL); - } - error = rtable_delete(tableid, info->rti_info[RTAX_DST], info->rti_info[RTAX_NETMASK], rt); if (error != 0) { |