Browse Source

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@
OPENBSD_4_0
mglocker 18 years ago
parent
commit
9d2c42b78a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/include/arpa/tftp.h

+ 3
- 1
src/include/arpa/tftp.h View File

@ -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 $ */ /* $NetBSD: tftp.h,v 1.3 1994/10/26 00:56:48 cgd Exp $ */
/* /*
@ -39,6 +39,8 @@
* Trivial File Transfer Protocol (IEN-133) * Trivial File Transfer Protocol (IEN-133)
*/ */
#define SEGSIZE 512 /* data segment size */ #define SEGSIZE 512 /* data segment size */
#define SEGSIZE_MIN 8 /* minimal data segment size */
#define SEGSIZE_MAX 65464 /* maximal data segment size */
/* /*
* Packet types. * Packet types.


Loading…
Cancel
Save