Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2007 18:40:02 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/112490: [route] [patch] Problem in "rt_check" routine.
Message-ID:  <200710111840.l9BIe2MA038717@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/112490; it has been noted by GNATS.

From: John Baldwin <jhb@freebsd.org>
To: mehul vora <mehuljv@yahoo.com>
Cc: bug-followup@freebsd.org
Subject: Re: kern/112490: [route] [patch] Problem in "rt_check" routine.
Date: Thu, 11 Oct 2007 14:37:41 -0400

 On Thursday 11 October 2007 02:24:38 pm mehul vora wrote:
 > will send the patch soon.
 
 FYI, I came up with another patch that may address the issue and is similar to 
 what rt_setgate() does:
 
 Index: route.c
 ===================================================================
 RCS file: /usr/cvs/src/sys/net/route.c,v
 retrieving revision 1.120
 diff -u -r1.120 route.c
 --- route.c	11 Jun 2007 12:19:34 -0000	1.120
 +++ route.c	10 Oct 2007 20:12:54 -0000
 @@ -1314,6 +1314,8 @@
  				return (ENETUNREACH);
  			}
  			RT_LOCK(rt0);
 +			if (rt0->rt_gwroute != NULL)
 +				RTFREE(rt0->rt_gwroute);
  			rt0->rt_gwroute = rt;
  			if (rt == NULL) {
  				RT_UNLOCK(rt0);
 
 
 -- 
 John Baldwin



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