diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-02-26 12:07:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-02-26 12:07:08 +0000 |
commit | 4afabb70d3832263b434fbae135d1831abbc908a (patch) | |
tree | 739954709bd281e109914bf600a893f10d57ac24 /lib/libncp/ipxsap.h | |
parent | 5961533dd057632471fb82c2f792fe2ed4c23c74 (diff) | |
download | FreeBSD-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.h | 6 |
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; |