1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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:
Robert Watson 2005-01-02 02:30:27 +00:00
parent 21275ec3db
commit 2fbe8bd709
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139562

View File

@ -145,7 +145,7 @@ struct ipx {
u_char ipx_pt; /* Packet Type (i.e. level 2 protocol) */ u_char ipx_pt; /* Packet Type (i.e. level 2 protocol) */
struct ipx_addr ipx_dna; /* Destination Network Address */ struct ipx_addr ipx_dna; /* Destination Network Address */
struct ipx_addr ipx_sna; /* Source Network Address */ struct ipx_addr ipx_sna; /* Source Network Address */
}; } __packed;
#define ipx_neteqnn(a,b) \ #define ipx_neteqnn(a,b) \
(((a).s_net[0] == (b).s_net[0]) && ((a).s_net[1] == (b).s_net[1])) (((a).s_net[0] == (b).s_net[0]) && ((a).s_net[1] == (b).s_net[1]))