Return to defs.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / tftpd / inc |
finish blksize support
1: #ifndef __DEFS_H 2: #define __DEFS_H 3: 4: 5: #ifndef STRSIZ 6: #define STRSIZ 256 7: #endif 8: 9: #define DEFAULT_CFGNAME "/etc/tftpd.conf" 10: #define DEFAULT_TIMEOUT 5 11: #define TFTP_PKT_MAX 516 12: #define TFTP_LOAD_MAX 512 13: 14: #define TFTP_OPT_TSIZE "tsize" 15: #define TFTP_OPT_BLKSIZE "blksize" 16: #define TFTP_OPT_TIMEOUT "timeout" 17: #define TFTP_OPT_ROLLOVER "rollover" 18: 19: 20: struct tagCli { 21: int opc; 22: u_short seq; 23: int tout; 24: int roll; 25: int siz; 26: off_t tsiz; 27: sockaddr_t addr; 28: int fd; 29: char file[PATH_MAX]; 30: char mode[10]; 31: short close; 32: int tmp; 33: }; 34: 35: 36: extern struct timespec timeout; 37: extern struct tagCli cli; 38: extern cfg_root_t cfg; 39: 40: 41: #endif