svn commit: r315684 - head/sys/netinet

Gleb Smirnoff glebius at FreeBSD.org
Tue Mar 21 16:23:45 UTC 2017


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


More information about the svn-src-all mailing list