File:  [ELWIX - Embedded LightWeight unIX -] / tftpd / inc / defs.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Feb 14 15:38:37 2014 UTC (10 years, 4 months ago) by misho
Branches: misho
CVS tags: tftp0_3, tftp0_2, start, TFTP0_2
ELWIX tftpd server

    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>