Permalink
Browse files

permit multiple default route (RADIX_MPATH)

XXX freebsd5 probably does not work
  • Loading branch information...
1 parent 97e3058 commit 164fe43c13d8b5b26da19569e34b4f4bf41e67d8 itojun committed Apr 25, 2004
Showing with 3 additions and 4 deletions.
  1. +1 −2 freebsd4/sys/net/radix.c
  2. +1 −1 netbsd/sys/net/radix.c
  3. +1 −1 openbsd/sys/net/radix.c
View
3 freebsd4/sys/net/radix.c
@@ -733,11 +733,10 @@ rn_delete(v_arg, netmask_arg, head, rn)
netmask = netmask_arg;
x = head->rnh_treetop;
#ifdef RADIX_MPATH
- 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;
View
2 netbsd/sys/net/radix.c
@@ -703,7 +703,7 @@ rn_delete(v_arg, netmask_arg, head, rn)
netmask = netmask_arg;
x = head->rnh_treetop;
#ifdef RADIX_MPATH
- if (rn && (rn->rn_mask != rn_zeros)) {
+ if (rn) {
tt = rn;
/*
* Is this route(rn) a rn->dupedkey chain?
View
2 openbsd/sys/net/radix.c
@@ -711,7 +711,7 @@ rn_delete(v_arg, netmask_arg, head, rn)
netmask = netmask_arg;
x = head->rnh_treetop;
#ifdef RADIX_MPATH
- if (rn && (rn->rn_mask != rn_zeros)) {
+ if (rn) {
tt = rn;
/*
* Is this route(rn) a rn->dupedkey chain?

0 comments on commit 164fe43

Please sign in to comment.