From 28b515bbefd3b127eb44ccd3870c0d83faea1bc6 Mon Sep 17 00:00:00 2001 From: Cedric Berger Date: Sat, 19 Jun 2004 19:55:54 +0000 Subject: require RTF_MPATH to enter a multipath route with RTM_ADD. route(8) takes a new -mpath modifier to enter a multipath route. requested deraadt@, ok itojun@ mcbride@ millert@ --- sys/net/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/route.c') diff --git a/sys/net/route.c b/sys/net/route.c index 62c5b865121..f7cbbaba971 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.41 2004/06/06 16:49:09 cedric Exp $ */ +/* $OpenBSD: route.c,v 1.42 2004/06/19 19:55:53 cedric Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -769,7 +769,7 @@ rtrequest1(req, info, ret_nrt) #ifndef SMALL_KERNEL /* do not permit exactly the same dst/mask/gw pair */ if (rn_mpath_capable(rnh) && - rt_mpath_conflict(rnh, rt, netmask)) { + rt_mpath_conflict(rnh, rt, netmask, flags & RTF_MPATH)) { if (rt->rt_gwroute) rtfree(rt->rt_gwroute); Free(rt_key(rt)); -- cgit v1.2.3