summaryrefslogtreecommitdiffstats
path: root/src/interface/pxe/pxe_tftp.c
diff options
context:
space:
mode:
authorMichael Brown2007-06-11 19:11:29 +0200
committerMichael Brown2007-06-11 19:11:29 +0200
commit01b4bde8a061773d563dfe3086ca04ad7ec7ca30 (patch)
tree043e3d6f6ecdc4a392da5ed38c21d02e3936dfad /src/interface/pxe/pxe_tftp.c
parentAdd concept of transfer metadata, to be used by UDP in order to (diff)
downloadipxe-01b4bde8a061773d563dfe3086ca04ad7ec7ca30.tar.gz
ipxe-01b4bde8a061773d563dfe3086ca04ad7ec7ca30.tar.xz
ipxe-01b4bde8a061773d563dfe3086ca04ad7ec7ca30.zip
Updated TFTP and PXE UDP API code to use not-yet-implemented data-xfer
UDP API.
Diffstat (limited to 'src/interface/pxe/pxe_tftp.c')
-rw-r--r--src/interface/pxe/pxe_tftp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/interface/pxe/pxe_tftp.c b/src/interface/pxe/pxe_tftp.c
index d6cb97281..919d5c9e2 100644
--- a/src/interface/pxe/pxe_tftp.c
+++ b/src/interface/pxe/pxe_tftp.c
@@ -71,10 +71,11 @@ static void pxe_tftp_build_uri ( char uri_string[PXE_URI_LEN],
port = htons ( TFTP_PORT );
if ( ! blksize )
blksize = TFTP_MAX_BLKSIZE;
- snprintf ( uri_string, sizeof ( uri_string ),
- "tftp://%s:%d%s%s?blksize=%d", inet_ntoa ( address ),
- ntohs ( port ), ( ( filename[0] == '/' ) ? "" : "/" ),
- filename, blksize );
+ tftp_set_request_blksize ( blksize );
+
+ snprintf ( uri_string, sizeof ( uri_string ), "tftp://%s:%d%s%s",
+ inet_ntoa ( address ), ntohs ( port ),
+ ( ( filename[0] == '/' ) ? "" : "/" ), filename );
}
/**