diff options
author | obrien <obrien@FreeBSD.org> | 2001-09-27 20:50:14 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-09-27 20:50:14 +0000 |
commit | fd227b96585a124a5184b2bededf77002d3f9218 (patch) | |
tree | 0dcc5d01842ae86c47c40173318f3676f17555bf /include/arpa | |
parent | a7d7bce5d18ecc1fd5eae2b1d5d62ab427aae658 (diff) | |
download | FreeBSD-src-fd227b96585a124a5184b2bededf77002d3f9218.zip FreeBSD-src-fd227b96585a124a5184b2bededf77002d3f9218.tar.gz |
RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds support
for negotiation of timeout and file size to the tftp protocol. This
is required by some firmware like EFI boot managers (at least on
HP i2000 Itanium servers) in order to boot an image using tftp. The
attached patch implements the RFC, and in doing so also implements
RFC2347; a generic tftp option extension.
PR: 30710
Submitted by: Espen Skoglund <esk@ira.uka.de>
Diffstat (limited to 'include/arpa')
-rw-r--r-- | include/arpa/tftp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h index 70a2029..84d7dc1 100644 --- a/include/arpa/tftp.h +++ b/include/arpa/tftp.h @@ -50,6 +50,7 @@ #define DATA 03 /* data packet */ #define ACK 04 /* acknowledgement */ #define ERROR 05 /* error code */ +#define OACK 06 /* option acknowledgement */ struct tftphdr { unsigned short th_opcode; /* packet type */ @@ -77,5 +78,6 @@ struct tftphdr { #define EBADID 5 /* unknown transfer ID */ #define EEXISTS 6 /* file already exists */ #define ENOUSER 7 /* no such user */ +#define EOPTNEG 8 /* option negotiation failed */ #endif /* !_TFTP_H_ */ |