diff options
| author | Michael Brown | 2007-06-11 19:11:29 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-06-11 19:11:29 +0200 |
| commit | 01b4bde8a061773d563dfe3086ca04ad7ec7ca30 (patch) | |
| tree | 043e3d6f6ecdc4a392da5ed38c21d02e3936dfad /src/interface/pxe/pxe_tftp.c | |
| parent | Add concept of transfer metadata, to be used by UDP in order to (diff) | |
| download | ipxe-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.c | 9 |
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 ); } /** |
