summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2008-05-09 07:33:14 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2008-05-09 07:33:14 +0000
commitd75e8abf1a42503fac7bfb35eefe6b17c8824035 (patch)
tree36a93fd5ab349e0b798f2522bf9fab0d7e5b975a /sys/net
parent95deb0ddc39ef787b6d4047116e89c66059988b8 (diff)
when cloning, copy the priority from the parent to the cloned route,
claudio ok
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.c3
1 files changed, 2 insertions, 1 deletions
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++;
}