From 9d2c42b78a3cba97e85214e57c21e71e6612637f Mon Sep 17 00:00:00 2001 From: mglocker <> Date: Thu, 20 Jul 2006 09:42:44 +0000 Subject: [PATCH] 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@ --- src/include/arpa/tftp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/arpa/tftp.h b/src/include/arpa/tftp.h index 62808559..0f6fe83a 100644 --- a/src/include/arpa/tftp.h +++ b/src/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.