diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-11-21 18:01:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-11-21 18:01:31 +0000 |
commit | 8e06c6f5dc2471f74afaba2d2165f15df7ccccb0 (patch) | |
tree | 360aefddde5c037a78d1da81fcde1cbb01aa9c25 /sys/net/radix.c | |
parent | 070dd156775d8869751bd9b8b48fa3df30d11948 (diff) |
Change rn_mpath_next() to be able to walk over the full multipath list
not only over routes of the same prio. This makes it possible to modify
rt_mpath_matchgate() so that if only gateway is specified without a specific
priority it will scan the full list and not only the first routes.
This is also needed for upcoming link state tracking.
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r-- | sys/net/radix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c index bbc8a779b16..3da7a554702 100644 --- a/sys/net/radix.c +++ b/sys/net/radix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radix.c,v 1.23 2008/05/09 07:39:31 claudio Exp $ */ +/* $OpenBSD: radix.c,v 1.24 2008/11/21 18:01:30 claudio Exp $ */ /* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */ /* @@ -569,7 +569,7 @@ rn_addroute(void *v_arg, void *n_arg, struct radix_node_head *head, mid = rn_mpath_count(tt) / 2; do { t = tt; - tt = rn_mpath_next(tt); + tt = rn_mpath_next(tt, 0); } while (tt && --mid > 0); break; } |