PERFORCE change 109822 for review

Sam Leffler sam at FreeBSD.org
Sun Nov 12 23:49:32 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=109822

Change 109822 by sam at sam_ebb on 2006/11/12 23:49:00

	mark struct ether_header packed so gcc doesn't assume the
	struct is 32-bit aligned; this fixes if_bridge

Affected files ...

.. //depot/projects/arm/src/sys/net/ethernet.h#2 edit

Differences ...

==== //depot/projects/arm/src/sys/net/ethernet.h#2 (text+ko) ====

@@ -61,7 +61,7 @@
 	u_char	ether_dhost[ETHER_ADDR_LEN];
 	u_char	ether_shost[ETHER_ADDR_LEN];
 	u_short	ether_type;
-};
+} __packed;
 
 /*
  * Structure of a 48-bit Ethernet address.


More information about the p4-projects mailing list