Updated TFTP and PXE UDP API code to use not-yet-implemented data-xfer

UDP API.
This commit is contained in:
Michael Brown
2007-06-11 18:11:29 +01:00
parent 95adce0ce1
commit 01b4bde8a0
4 changed files with 478 additions and 411 deletions
+5 -4
View File
@@ -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 );
}
/**