summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2006-08-09 02:09:29 +0200
committerMichael Brown2006-08-09 02:09:29 +0200
commitd1a123b1f4f265aa415d647212c64fb02d47e208 (patch)
tree76d61ff8a19d734dc8d7620980f0d4112bc8aeed /src/include
parentInitial (untested) implementation of TFTP over the new UDP API. (diff)
downloadipxe-d1a123b1f4f265aa415d647212c64fb02d47e208.tar.gz
ipxe-d1a123b1f4f265aa415d647212c64fb02d47e208.tar.xz
ipxe-d1a123b1f4f265aa415d647212c64fb02d47e208.zip
Added TFTP test code (currently just dumps file to console).
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/tftp.h10
1 files changed, 10 insertions, 0 deletions
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 */