svn commit: r284099 - stable/10/sys/netinet
Ian Lepore
ian at FreeBSD.org
Sat Jun 6 20:14:59 UTC 2015
Author: ian
Date: Sat Jun 6 20:14:58 2015
New Revision: 284099
URL: https://svnweb.freebsd.org/changeset/base/284099
Log:
MFC r279236:
Change struct attribute to avoid aligned operations mismatch
Previous __alignment(4) allowed compiler to assume that operations are
performed on aligned region. On ARM processor, this led to alignment fault
Modified:
stable/10/sys/netinet/ip.h
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/ip.h
==============================================================================
--- stable/10/sys/netinet/ip.h Sat Jun 6 20:01:06 2015 (r284098)
+++ stable/10/sys/netinet/ip.h Sat Jun 6 20:14:58 2015 (r284099)
@@ -67,7 +67,7 @@ struct ip {
u_char ip_p; /* protocol */
u_short ip_sum; /* checksum */
struct in_addr ip_src,ip_dst; /* source and dest address */
-} __packed __aligned(4);
+} __packed __aligned(2);
#define IP_MAXPACKET 65535 /* maximum packet size */
More information about the svn-src-stable
mailing list