From 01b4bde8a061773d563dfe3086ca04ad7ec7ca30 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 11 Jun 2007 18:11:29 +0100 Subject: Updated TFTP and PXE UDP API code to use not-yet-implemented data-xfer UDP API. --- src/interface/pxe/pxe_tftp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/interface/pxe/pxe_tftp.c') 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 ); } /** -- cgit v1.2.3-55-g7522