2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-12-27 19:01:41 +00:00
Files
xNBA/src/include
Michael Brown 481a21798d [autoboot] Retain initial-slash (if present) when constructing TFTP URIs
When we boot from a DHCP-supplied filename, we previously relied on
the fact that the current working URI is set to tftp://[next-server]/
in order to resolve the filename into a full tftp:// URI.  However,
this process will eliminate the distinction between filenames with and
without initial slashes:

 cwuri="tftp://10.0.0.1/" filename="vmlinuz"  => URI="tftp://10.0.0.1/vmlinuz"
 cwuri="tftp://10.0.0.1/" filename="/vmlinuz" => URI="tftp://10.0.0.1/vmlinuz"

This distinction is important for some TFTP servers.  We now
explicitly construct a string of the form

 "tftp://[next-server]/filename"

so that a filename with an initial slash will result in a URI
containing a double-slash, e.g.

 "tftp://10.0.0.1//vmlinuz"

The TFTP code always strips a single initial slash, and so ends up
presenting the correct path to the server.

URIs entered explicitly by users at the command line must include a
double slash if they want an initial slash presented to the TFTP
server:

  "kernel tftp://10.0.0.1/vmlinuz"  => filename="vmlinuz"
  "kernel tftp://10.0.0.1//vmlinuz" => filename="/vmlinuz"
2008-07-31 16:55:46 +01:00
..
2007-08-20 20:29:41 +02:00
2006-09-11 17:54:19 +00:00
2005-03-08 18:53:11 +00:00
2006-08-09 02:30:35 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2007-08-20 00:34:32 +02:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2008-03-26 22:57:25 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2007-06-03 01:51:10 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2007-07-14 15:42:26 +01:00
2008-03-26 15:10:56 -07:00
2007-06-03 01:50:03 +00:00
2007-08-20 20:29:50 +02:00
2007-08-20 20:29:58 +02:00
2007-09-21 01:14:38 +01:00
2005-03-08 18:53:11 +00:00
2008-03-02 03:15:07 +03:00