Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2017 16:23:44 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315684 - head/sys/netinet
Message-ID:  <201703211623.v2LGNiXs001857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Mar 21 16:23:44 2017
New Revision: 315684
URL: https://svnweb.freebsd.org/changeset/base/315684

Log:
  Force same alignment on struct xinpgen as we have on struct xinpcb.  This
  fixes 32-bit builds.

Modified:
  head/sys/netinet/in_pcb.h

Modified: head/sys/netinet/in_pcb.h
==============================================================================
--- head/sys/netinet/in_pcb.h	Tue Mar 21 14:14:11 2017	(r315683)
+++ head/sys/netinet/in_pcb.h	Tue Mar 21 16:23:44 2017	(r315684)
@@ -314,7 +314,7 @@ struct xinpgen {
 	u_int		xig_count;	/* number of PCBs at this time */
 	inp_gen_t	xig_gen;	/* generation count at this time */
 	so_gen_t	xig_sogen;	/* socket generation count this time */
-};
+} __aligned(8);
 #ifdef	_KERNEL
 void	in_pcbtoxinpcb(const struct inpcb *, struct xinpcb *);
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703211623.v2LGNiXs001857>