Added TFTP test code (currently just dumps file to console).

This commit is contained in:
Michael Brown
2006-08-09 00:09:29 +00:00
parent 3611cb17b7
commit d1a123b1f4
4 changed files with 67 additions and 5 deletions

View File

@@ -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 */