From: Michael Brown Date: Tue, 31 Jul 2007 02:48:43 +0000 (+0100) Subject: Fix endianness of "shelf" field X-Git-Tag: v0.9.3~140 X-Git-Url: http://git.etherboot.org/people/andreif/gpxe.git/commitdiff_plain/dde3f99e4ecbf2fac98dd4da429fb446d543f50e Fix endianness of "shelf" field --- diff --git a/src/usr/aoeboot.c b/src/usr/aoeboot.c index 91b80e34..1ed4ce49 100644 --- a/src/usr/aoeboot.c +++ b/src/usr/aoeboot.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -77,7 +78,7 @@ int aoeboot ( const char *root_path ) { sizeof ( boot_info.client ) ); memcpy ( boot_info.server, aoe->target, sizeof ( boot_info.server ) ); - boot_info.shelf = aoe->major; + boot_info.shelf = htons ( aoe->major ); boot_info.slot = aoe->minor; copy_to_real ( 0x40, 0xf0, &boot_info, sizeof ( boot_info ) );