summaryrefslogtreecommitdiffstats
path: root/lib/libncp/ipxsap.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-02-26 12:07:08 +0000
committerrwatson <rwatson@FreeBSD.org>2007-02-26 12:07:08 +0000
commit4afabb70d3832263b434fbae135d1831abbc908a (patch)
tree739954709bd281e109914bf600a893f10d57ac24 /lib/libncp/ipxsap.h
parent5961533dd057632471fb82c2f792fe2ed4c23c74 (diff)
downloadFreeBSD-src-4afabb70d3832263b434fbae135d1831abbc908a.zip
FreeBSD-src-4afabb70d3832263b434fbae135d1831abbc908a.tar.gz
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>
Diffstat (limited to 'lib/libncp/ipxsap.h')
-rw-r--r--lib/libncp/ipxsap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libncp/ipxsap.h b/lib/libncp/ipxsap.h
index 45a13cc..2b26b6a 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;
OpenPOWER on IntegriCloud