From d75e8abf1a42503fac7bfb35eefe6b17c8824035 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 9 May 2008 07:33:14 +0000 Subject: when cloning, copy the priority from the parent to the cloned route, claudio ok --- sys/net/route.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/route.c b/sys/net/route.c index d357bad2c93..1ee1d81b842 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.90 2008/05/07 05:14:21 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.91 2008/05/09 07:33:13 henning Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -865,6 +865,7 @@ makeroute: * route's parent. */ rt->rt_rmx = (*ret_nrt)->rt_rmx; /* copy metrics */ + rt->rt_priority = (*ret_nrt)->rt_priority; rt->rt_parent = *ret_nrt; /* Back ptr. to parent. */ rt->rt_parent->rt_refcnt++; } -- cgit v1.2.3