Return to defs.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / tftpd / inc |
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;
1.2 ! misho 24: short opts;
1.1 misho 25: };
26:
27:
28: extern struct timespec timeout;
29: extern struct tagCli cli;
30: extern cfg_root_t cfg;
31:
32:
33: #endif