summaryrefslogtreecommitdiff
path: root/include/arpa/tftp.h
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2006-07-20 09:42:45 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2006-07-20 09:42:45 +0000
commitfe7c38b5590164d8eddb972eb2a8ea9740822dce (patch)
treebf5d1dd48da20321a8a58df1f45237dededf55e7 /include/arpa/tftp.h
parent337e61c6fa38d8c4cbcbc7c81729c7be5b8e1c0a (diff)
Add blksize option support for tftpd according to RFC 2348.
Note: While testing the new option, we noticed that our stable tftpd has a problem if any option is set (e.g. tsize) and you try to put a file. This has nothing todo with our new blksize option. We fix this as next. ok claudio@
Diffstat (limited to 'include/arpa/tftp.h')
-rw-r--r--include/arpa/tftp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h
index 62808559899..0f6fe83ae25 100644
--- a/include/arpa/tftp.h
+++ b/include/arpa/tftp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftp.h,v 1.5 2004/01/27 02:25:30 deraadt Exp $ */
+/* $OpenBSD: tftp.h,v 1.6 2006/07/20 09:42:44 mglocker Exp $ */
/* $NetBSD: tftp.h,v 1.3 1994/10/26 00:56:48 cgd Exp $ */
/*
@@ -39,6 +39,8 @@
* Trivial File Transfer Protocol (IEN-133)
*/
#define SEGSIZE 512 /* data segment size */
+#define SEGSIZE_MIN 8 /* minimal data segment size */
+#define SEGSIZE_MAX 65464 /* maximal data segment size */
/*
* Packet types.