summaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-08-02 07:42:12 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-08-02 07:42:12 +0000
commitcbc5e3352be50bf158bffde4b9bb174ff61a2850 (patch)
treea0952512f1f8e310fd2fb4afdf5eed30dd538f2f /sys/net/route.c
parentfa3daf8404559e0e8fe0ecf6ddd0db96ed57b171 (diff)
Move a sanity check that only makes sense for userland where it belongs.
ok bluhm@, florian@
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index f942a526616..8327614ca79 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.364 2017/07/30 18:18:08 florian Exp $ */
+/* $OpenBSD: route.c,v 1.365 2017/08/02 07:42:11 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -722,16 +722,6 @@ rtrequest_delete(struct rt_addrinfo *info, u_int8_t prio, struct ifnet *ifp,
return (ESRCH);
}
- /*
- * If we got multipath routes, we require users to specify
- * a matching gateway.
- */
- if ((rt->rt_flags & RTF_MPATH) &&
- info->rti_info[RTAX_GATEWAY] == NULL) {
- rtfree(rt);
- return (ESRCH);
- }
-
#ifdef BFD
if (ISSET(rt->rt_flags, RTF_BFD))
bfdclear(rt);