Subject: CVS commit: src/sys/netinet
To: None <source-changes@NetBSD.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: source-changes
Date: 10/20/2006 13:11:09
Module Name: src
Committed By: reinoud
Date: Fri Oct 20 13:11:09 UTC 2006
Modified Files:
src/sys/netinet: tcp_sack.c
Log Message:
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.19 -r1.20 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.