Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 08/20/2007 19:42:34
Module Name:	src
Committed By:	dyoung
Date:		Mon Aug 20 19:42:34 UTC 2007

Modified Files:
	src/sys/netinet: ip_flow.c
	src/sys/netinet6: ip6_flow.c

Log Message:
Don't call rtcache_check() from the fast-forward code, which runs
at IPL_NET, because rtcache_check() may read the forwarding table.
Elsewhere, the kernel only blocks interrupts at priority IPL_SOFTNET
and below while it modifies the forwarding table, so rtcache_check()
could be reading the table in an inconsistent state.  Use
rtcache_done(), instead.

XXX netinet/ip_flow.c and netinet6/ip6_flow.c are virtually identical.
XXX They should share code.


To generate a diff of this commit:
cvs rdiff -r1.47 -r1.48 src/sys/netinet/ip_flow.c
cvs rdiff -r1.8 -r1.9 src/sys/netinet6/ip6_flow.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.