--- tftpd/inc/defs.h 2014/02/14 15:38:37 1.1 +++ tftpd/inc/defs.h 2014/02/20 00:04:36 1.3 @@ -3,15 +3,19 @@ #ifndef STRSIZ -#define STRSIZ 256 +#define STRSIZ 256 #endif -#define DEFAULT_CFGNAME "/etc/tftpd.conf" -#define DEFAULT_TIMEOUT 5 -#define TFTP_PKT_MAX 516 -#define TFTP_LOAD_MAX 512 +#define DEFAULT_CFGNAME "/etc/tftpd.conf" +#define DEFAULT_TIMEOUT 5 +#define TFTP_PKT_MAX 516 +#define TFTP_LOAD_MAX 512 +#define TFTP_OPT_TSIZE "tsize" +#define TFTP_OPT_BLKSIZE "blksize" +#define TFTP_OPT_TIMEOUT "timeout" + struct tagCli { int opc; u_short seq; @@ -21,6 +25,7 @@ struct tagCli { char file[PATH_MAX]; char mode[10]; short close; + short opts; };