From 158ae6cdf229340074fb4d4684c9eecb9530385b Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 26 Feb 2007 12:07:08 +0000 Subject: [PATCH] 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 --- lib/libncp/ipxsap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libncp/ipxsap.h b/lib/libncp/ipxsap.h index 45a13ccc809b..2b26b6adbbac 100644 --- a/lib/libncp/ipxsap.h +++ b/lib/libncp/ipxsap.h @@ -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;