svn commit: r196608 - head/sys/netinet

Qing Li qingli at FreeBSD.org
Fri Aug 28 07:26:52 UTC 2009


Author: qingli
Date: Fri Aug 28 05:37:31 2009
New Revision: 196608
URL: http://svn.freebsd.org/changeset/base/196608

Log:
  Do not try to free the rt_lle entry of the cached route in
  ip_output() if the cached route was not initialized from the
  flow-table. The rt_lle entry is invalid unless it has been
  initialized through the flow-table.
  
  Reviewed by:	kmacy, rwatson
  MFC after:	immediately

Modified:
  head/sys/netinet/ip_output.c

Modified: head/sys/netinet/ip_output.c
==============================================================================
--- head/sys/netinet/ip_output.c	Thu Aug 27 22:23:23 2009	(r196607)
+++ head/sys/netinet/ip_output.c	Fri Aug 28 05:37:31 2009	(r196608)
@@ -202,10 +202,8 @@ again:
 	if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
 			  dst->sin_family != AF_INET ||
 			  dst->sin_addr.s_addr != ip->ip_dst.s_addr)) {
-		if (!nortfree) {
+		if (!nortfree)
 			RTFREE(ro->ro_rt);
-			LLE_FREE(ro->ro_lle);
-		}
 		ro->ro_rt = (struct rtentry *)NULL;
 		ro->ro_lle = (struct llentry *)NULL;
 	}


More information about the svn-src-head mailing list