freebsd 8.1 crash with ECMP
Ingo Flaschberger
if at xip.at
Mon Aug 23 16:45:49 UTC 2010
Hi,
attached bugfix.
Kind regards,
Ingo Flaschberger
-------------- next part --------------
--- /usr/src/sys/net/radix_mpath.c_org 2010-08-23 16:36:57.000000000 +0000
+++ /usr/src/sys/net/radix_mpath.c 2010-08-23 16:38:18.000000000 +0000
@@ -294,6 +294,9 @@
weight >= rt->rt_rmx.rmx_weight && rn;
weight -= rt->rt_rmx.rmx_weight) {
+ /* check if next key exists */
+ if (rn->rn_dupedkey == NULL)
+ break;
/* stay within the multipath routes */
if (rn->rn_dupedkey && rn->rn_mask != rn->rn_dupedkey->rn_mask)
break;
More information about the freebsd-net
mailing list