diff options
| author | 2008-05-09 07:33:13 +0000 | |
|---|---|---|
| committer | 2008-05-09 07:33:13 +0000 | |
| commit | 17f5c6eb704fae89584bae3b46c5ca0dee2f96f9 (patch) | |
| tree | c68dd04c48693fa09bf766b1ab7e16897024635e | |
| parent | arp entries in the routing table should have priority RTF_CONNECTED (diff) | |
| download | wireguard-openbsd-17f5c6eb704fae89584bae3b46c5ca0dee2f96f9.tar.xz wireguard-openbsd-17f5c6eb704fae89584bae3b46c5ca0dee2f96f9.zip | |
when cloning, copy the priority from the parent to the cloned route,
claudio ok
| -rw-r--r-- | sys/net/route.c | 3 |
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++; } |
