From 64c1f79d50d9dbf06ef444574fe1fa9b37407183 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 2 Jan 2005 02:30:27 +0000 Subject: [PATCH] Mark 'struct ipx', the IPX packet header, as __packed. Otherwise, recent versions of gcc will insert an extra 16 bits of padding in the structure, corrupting all IPX packet output. MFC after: 3 days --- sys/netipx/ipx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netipx/ipx.h b/sys/netipx/ipx.h index 7f4ef164d3ac..83f2a9bcb4cd 100644 --- a/sys/netipx/ipx.h +++ b/sys/netipx/ipx.h @@ -145,7 +145,7 @@ struct ipx { u_char ipx_pt; /* Packet Type (i.e. level 2 protocol) */ struct ipx_addr ipx_dna; /* Destination Network Address */ struct ipx_addr ipx_sna; /* Source Network Address */ -}; +} __packed; #define ipx_neteqnn(a,b) \ (((a).s_net[0] == (b).s_net[0]) && ((a).s_net[1] == (b).s_net[1]))