diff options
author | 2004-04-25 02:48:03 +0000 | |
---|---|---|
committer | 2004-04-25 02:48:03 +0000 | |
commit | f40e51e01c571dc79398ecc0d1072a053a2f61d2 (patch) | |
tree | 24758f804f01c4d104b1c00bed2011965fe373f9 /sys/kern/vfs_subr.c | |
parent | sync 'other' in test6, too. (diff) | |
download | wireguard-openbsd-f40e51e01c571dc79398ecc0d1072a053a2f61d2.tar.xz wireguard-openbsd-f40e51e01c571dc79398ecc0d1072a053a2f61d2.zip |
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)
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |