Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

permit multiple default route (RADIX_MPATH)

XXX freebsd5 probably does not work
  • Loading branch information...
commit 164fe43c13d8b5b26da19569e34b4f4bf41e67d8 1 parent 97e3058
itojun authored
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?
Please sign in to comment.
Something went wrong with that request. Please try again.