diff options
author | Michael Brown | 2015-08-26 23:35:42 +0200 |
---|---|---|
committer | Michael Brown | 2015-09-02 14:38:53 +0200 |
commit | 53d2d9e3c37d6170341818a254e18d341ee15511 (patch) | |
tree | 53cd2b5a20c37d270e3046d4823e62d3337ca7c2 /src/image | |
parent | [pxe] Populate ciaddr in fake PXE Boot Server ACK packet (diff) | |
download | ipxe-53d2d9e3c37d6170341818a254e18d341ee15511.tar.gz ipxe-53d2d9e3c37d6170341818a254e18d341ee15511.tar.xz ipxe-53d2d9e3c37d6170341818a254e18d341ee15511.zip |
[uri] Generalise tftp_uri() to pxe_uri()
Merge the functionality of parse_next_server_and_filename() and
tftp_uri() into a single pxe_uri(), which takes a server address
(IPv4/IPv6/none) and a filename, and produces a URI using the rule:
- if the filename is a hierarchical absolute URI (i.e. includes a
scheme such as "http://" or "tftp://") then use that URI and ignore
the server address,
- otherwise, if the server address is recognised (according to
sa_family) then construct a TFTP URI based on the server address,
port, and filename
- otherwise fail.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
0 files changed, 0 insertions, 0 deletions