Subject: CVS commit: src/sys/netinet6
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 11/21/2007 21:18:25
Module Name:	src
Committed By:	drochner
Date:		Wed Nov 21 21:18:25 UTC 2007

Modified Files:
	src/sys/netinet6: in6_pcb.c

Log Message:
Fix in6_pcbrtentry() for the case of IPv6-mapped IPv4 addresses:
don't assume that the cached route is a sockaddr_in6, and do the
right comparisions so that no out-of-bounds memory is accessed.

btw, the use of "#ifdef INET" throughout the source doesn't look clean
to me: There are 2 cases -- whether AF_INET is usable by userland
programs, and whether IPv4 is supported as on-wire protocol.


To generate a diff of this commit:
cvs rdiff -r1.89 -r1.90 src/sys/netinet6/in6_pcb.c

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