summaryrefslogtreecommitdiff
path: root/sys/net/radix.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-04-25 20:02:40 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-04-25 20:02:40 +0000
commitddb5fc0cf134e4e36003e3276809719858697ec9 (patch)
treea7b4d15463396d74548961d6267c1a8bc3951c10 /sys/net/radix.c
parentf07e19f7b782eb682f85bd9fba838e30c58b55f4 (diff)
permit multiple default route. from kame
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r--sys/net/radix.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index cd557aacd18..d7df4862493 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radix.c,v 1.17 2004/04/25 02:48:03 itojun Exp $ */
+/* $OpenBSD: radix.c,v 1.18 2004/04/25 20:02:39 itojun Exp $ */
/* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */
/*
@@ -721,11 +721,10 @@ rn_delete(v_arg, netmask_arg, head, rn)
netmask = netmask_arg;
x = head->rnh_treetop;
#ifndef SMALL_KERNEL
- if (rn && (rn->rn_mask != rn_zeros)) {
+ if (rn) {
tt = rn;
- /*
+ /*
* Is this route(rn) a rn->dupedkey chain?
- * Only default route is an exception. (rn_mask)
*/
if (rn_mpath_next(tt->rn_p))
mpath_enable = 1;