From abbda8507b5aecb2e8c4a237e56eb32f4b2d1308 Mon Sep 17 00:00:00 2001 From: qingli Date: Fri, 30 May 2008 09:34:35 +0000 Subject: When RADIX_MPATH is enabled, the route selection is not rotating through the multipath entries. The hash value was a signed integer and was always giving a -1 value. PR: 123991 Submitted by: Barrett Lyon --- sys/net/radix_mpath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/radix_mpath.h') diff --git a/sys/net/radix_mpath.h b/sys/net/radix_mpath.h index b9224c8..bcb210e 100644 --- a/sys/net/radix_mpath.h +++ b/sys/net/radix_mpath.h @@ -46,11 +46,11 @@ struct rtentry; struct sockaddr; int rn_mpath_capable(struct radix_node_head *); struct radix_node *rn_mpath_next(struct radix_node *); -int rn_mpath_count(struct radix_node *); +u_int32_t rn_mpath_count(struct radix_node *); struct rtentry *rt_mpath_matchgate(struct rtentry *, struct sockaddr *); int rt_mpath_conflict(struct radix_node_head *, struct rtentry *, struct sockaddr *); -void rtalloc_mpath_fib(struct route *, int, u_int); +void rtalloc_mpath_fib(struct route *, u_int32_t, u_int); #define rtalloc_mpath(_route, _hash) rtalloc_mpath_fib((_route), (_hash), 0) struct radix_node *rn_mpath_lookup(void *, void *, struct radix_node_head *); -- cgit v1.1