Skip to contentSkip to conversation

(pxe:server_ip:gateway_ip) parsing wrong?

PATCH In review Colin Watson 3 participants 4 messages Jun 7, 2010

lore
Share & tools
lore
#0 lore raw

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_di
 	return 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]]
#1 lore raw

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]]
#2 lore raw

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_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?

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

#3 lore raw
In reply to Colin Watson
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 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_di
 	return 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