From f40e51e01c571dc79398ecc0d1072a053a2f61d2 Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 25 Apr 2004 02:48:03 +0000 Subject: radix tree with multipath support. from kame. deraadt ok user visible changes: - you can add multiple routes with same key (route add A B then route add A C) - you have to specify gateway address if there are multiple entries on the table (route delete A B, instead of route delete A) kernel change: - radix_node_head has an extra entry - rnh_deladdr takes extra argument TODO: - actually take advantage of multipath (rtalloc -> rtalloc_mpath) --- sys/kern/vfs_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/vfs_subr.c') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 793f06760c8..f1b368cd84d 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.97 2004/01/09 03:01:03 tedu Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.98 2004/04/25 02:48:03 itojun Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1617,7 +1617,7 @@ vfs_free_netcred(rn, w) { register struct radix_node_head *rnh = (struct radix_node_head *)w; - (*rnh->rnh_deladdr)(rn->rn_key, rn->rn_mask, rnh); + (*rnh->rnh_deladdr)(rn->rn_key, rn->rn_mask, rnh, NULL); free(rn, M_NETADDR); return (0); } -- cgit v1.2.3-59-g8ed1b