Annotation of tftpd/inc/defs.h, revision 1.1.1.1
1.1 misho 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:
15: struct tagCli {
16: int opc;
17: u_short seq;
18: int siz;
19: sockaddr_t addr;
20: int fd;
21: char file[PATH_MAX];
22: char mode[10];
23: short close;
24: };
25:
26:
27: extern struct timespec timeout;
28: extern struct tagCli cli;
29: extern cfg_root_t cfg;
30:
31:
32: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>