From d1a123b1f4f265aa415d647212c64fb02d47e208 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 9 Aug 2006 00:09:29 +0000 Subject: Added TFTP test code (currently just dumps file to console). --- src/include/gpxe/tftp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include') diff --git a/src/include/gpxe/tftp.h b/src/include/gpxe/tftp.h index e5c599bc0..68589b524 100644 --- a/src/include/gpxe/tftp.h +++ b/src/include/gpxe/tftp.h @@ -119,6 +119,12 @@ struct tftp_session { * (i.e. that no blocks have yet been received). */ int state; + /** Requested data block size + * + * This is the "blksize" option requested from the TFTP + * server. It may or may not be honoured. + */ + unsigned int request_blksize; /** Data block size * * This is the "blksize" option negotiated with the TFTP @@ -140,4 +146,8 @@ struct tftp_session { struct retry_timer timer; }; +/* Function prototypes */ + +extern struct async_operation * tftp_get ( struct tftp_session *tftp ); + #endif /* _GPXE_TFTP_H */ -- cgit v1.2.3-55-g7522