#ifndef __DEFS_H
#define __DEFS_H
#ifndef STRSIZ
#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 TFTP_OPT_TSIZE "tsize"
#define TFTP_OPT_BLKSIZE "blksize"
#define TFTP_OPT_TIMEOUT "timeout"
struct tagCli {
int opc;
u_short seq;
int siz;
sockaddr_t addr;
int fd;
char file[PATH_MAX];
char mode[10];
short close;
};
extern struct timespec timeout;
extern struct tagCli cli;
extern cfg_root_t cfg;
#endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>