Fix the unaligned access problems that some people saw on alpha

by using a __packed keyword for the fxp_rfa structure.  The Intel
guys who designed this structure with unaligned fields deserve
to be shot.

Tested by:	kris
Approved by:	re@ (jhb)
This commit is contained in:
Maxime Henrion 2003-05-12 18:15:33 +00:00
parent 014ed75b27
commit 72490791a8

View File

@ -362,7 +362,7 @@ struct fxp_rfa {
u_int8_t rfax_csum_sts;
u_int8_t rfax_zerocopy_sts;
u_int8_t rfax_pad[8];
};
} __packed;
#define FXP_RFAX_LEN 16
#define FXP_RFA_STATUS_RCOL 0x0001 /* receive collision */