diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-01-02 02:30:27 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-01-02 02:30:27 +0000 |
commit | 64c1f79d50d9dbf06ef444574fe1fa9b37407183 (patch) | |
tree | f5d40ef7985e6584c0758738dd2e14a4d1ceaf09 /sys/netipx/ipx.h | |
parent | c52cecbfbdcae92e1a2283ab61126bf7b0a1ba82 (diff) | |
download | FreeBSD-src-64c1f79d50d9dbf06ef444574fe1fa9b37407183.zip FreeBSD-src-64c1f79d50d9dbf06ef444574fe1fa9b37407183.tar.gz |
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
Diffstat (limited to 'sys/netipx/ipx.h')
-rw-r--r-- | sys/netipx/ipx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/ipx.h b/sys/netipx/ipx.h index 7f4ef16..83f2a9b 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])) |