Subject: CVS commit: [netbsd-3] src/sys/netinet
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 11/11/2006 20:48:34
Module Name:	src
Committed By:	bouyer
Date:		Sat Nov 11 20:48:34 UTC 2006

Modified Files:
	src/sys/netinet [netbsd-3]: tcp_sack.c

Log Message:
Pull up following revision(s) (requested by reinoud in ticket #1561):
	sys/netinet/tcp_sack.c: revision 1.20
Fix alignment problems causing regular panics in tpc_sack_option on
NetBSD/alpha and NetBSD/sparc. This fixes PR#34751.
The problem most likely started to show in gcc4 and is caused by the use of
a casting to an uint32_t pointer that is later copied from using memcpy.
Gcc detects the copying of 4 bytes from an uint32_t pointer and decides to
just replace it with an aligned copy causing the trap.
Fix provided by Izumi Tsutsui and ok'd by Martin.


To generate a diff of this commit:
cvs rdiff -r1.10.2.3 -r1.10.2.4 src/sys/netinet/tcp_sack.c

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