From fd227b96585a124a5184b2bededf77002d3f9218 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 27 Sep 2001 20:50:14 +0000 Subject: 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 --- include/arpa/tftp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/arpa') 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_ */ -- cgit v1.1