(pxe:server_ip:gateway_ip) parsing wrong?
PATCH 1/1 (pxe:server_ip:gateway_ip) parsing wrong?
While writing documentation for booting GRUB over the network, I noticed that the code to handle (pxe:server_ip:gateway_ip) device names looks wrong. Shouldn't it be like this?
2010-06-07 Colin Watson <[email protected]>
* fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
=== modified file 'fs/i386/pc/pxe.c'
i386/pc/pxe.c +1 -1
@@ -114,7 +114,7 @@ grub_pxe_open (const char *name, grub_direturn err;if (*ptr ==':' ) { - err =parse_ip (ptr +1 , &(data->server_ip),0 ); + err =parse_ip (ptr +1 , &(data->gateway_ip),0 );if (err)return err; }
Thanks,
Signature · 1 line
Colin Watson [[email protected]]
Oh, and speaking of PXE support, what's the point of the pxe_unload command? As near as I can tell, it seems to be the equivalent of 'rmmod pxe'. Is there some reason one might want to run this if pxe were built into the core image, or is it cruft that we should remove?
Signature · 1 line
Colin Watson [[email protected]]
Quoting Colin Watson, who wrote the following on Mon, 7 Jun 2010:
Quoted 4 lines
Oh, and speaking of PXE support, what's the point of the
pxe_unloadcommand? As near as I can tell, it seems to be the equivalent of 'rmmod pxe'. Is there some reason one might want to run this if pxe were built into the core image, or is it cruft that we should remove?
Yea that is a bit weird -- I could understand if pxe_unload called the
PXE terminate API to free all resources and end the PXE firmware session, but the way it is now it seems a bit useless.
--S
Quoted 5 lines · Colin Watson
While writing documentation for booting GRUB over the network, I noticed that the code to handle (pxe:server_ip:gateway_ip) device names looks wrong. Shouldn't it be like this?
Go ahead.
Quoted 20 lines
2010-06-07 Colin Watson <[email protected]>
*
fs/i386/pc/pxe.c(grub_pxe_open): Fix parsing ofgateway_ip.=== modified file '
fs/i386/pc/pxe.c'i386/pc/pxe.c +1
-1@@ -114,7 +114,7 @@ grub_pxe_open (const char *name, grub_direturn err;if (*ptr ==':' ) { - err =parse_ip (ptr +1 , &(data->server_ip),0 ); + err =parse_ip (ptr +1 , &(data->gateway_ip),0 );if (err)return err; }Thanks,
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko