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
This commit is contained in:
rwatson 2005-01-02 02:30:27 +00:00
parent c52cecbfbd
commit 64c1f79d50

View File

@ -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]))