Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2010 18:45:45 +0200 (CEST)
From:      Ingo Flaschberger <if@xip.at>
To:        net@freebsd.org
Subject:   Re: freebsd 8.1 crash with ECMP
Message-ID:  <alpine.LFD.2.00.1008231844290.12708@filebunker.xip.at>
In-Reply-To: <alpine.LFD.2.00.1008231506540.12708@filebunker.xip.at>
References:  <alpine.LFD.2.00.1008230135060.29368@filebunker.xip.at> <d63962deda54974fcf6fcd104998a460.squirrel@www.jr-hosting.nl> <alpine.LFD.2.00.1008231506540.12708@filebunker.xip.at>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hi,

attached bugfix.

Kind regards,
 	Ingo Flaschberger
[-- Attachment #2 --]
--- /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;
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LFD.2.00.1008231844290.12708>