Mark data structures used on the wire with IPX SAP as __packed so that

they are not inappropriately padded as a result of compiler changes.

PR:		kern/74105
Submitted by:	Bob Johnson <bob89 at eng dot ufl dot edu>
This commit is contained in:
Robert Watson 2007-02-26 12:07:08 +00:00
parent c724ad6648
commit 158ae6cdf2

View File

@ -48,19 +48,19 @@
struct sap_query {
u_short query_type; /* net order */
u_short server_type; /* net order */
};
} __packed;
struct sap_entry {
u_short server_type;
u_char server_name[IPX_SAP_SERVER_NAME_LEN];
struct ipx_addr ipx;
u_short hops;
};
} __packed;
struct sap_packet {
u_short operation;
struct sap_entry sap_entries[1];
};
} __packed;
struct sap_rq {
struct sockaddr_ipx dest_addr;