Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-3-1] src/sys/netinet



Module Name:    src
Committed By:   bouyer
Date:           Sat Nov 11 20:51:44 UTC 2006

Modified Files:
        src/sys/netinet [netbsd-3-1]: 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.3.4.1 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.




Home | Main Index | Thread Index | Old Index