/************************************************************************* * (C) 2009 AITNET - Sofia/Bulgaria - * by Michael Pounov * * $Author: misho $ * $Id: defs.h,v 1.1.1.1.2.10 2011/06/08 08:00:23 misho Exp $ * *************************************************************************/ #ifndef __DEFS_H #define __DEFS_H #define MAX_STR 256 #define TFTP_BUF 516 #define TFTP_RETRY 7 #define TFTP_TIMEOUT 3 #define DEFAULT_TIMEOUT "300" #define DEFAULT_CONFIG "/etc/cfexec.conf" #define DEFAULT_USER "root" #define DEFAULT_MOUNT "/elwix" #define DEFAULT_DEVICE "/dev/ufs/elwix" #define DEFAULT_CHROOT "/" #define DEFAULT_TMP "/tmp" #define DEFAULT_TFTP 69 #define DEFAULT_TFTPDIR "/elwix/tftpboot" #define DEFAULT_PKGDIR "/system" #define FIRMWARE_IMG "elwix-firmware.sys" #define FIRMWARE_BAK "elwix-firmware.sys.old" #if defined(__FreeBSD__) #elif defined(__OpenBSD__) #endif #define VERB(x) if ((x) <= Verbose) #define FTRACE(x) if ((x) <= Verbose) syslog(LOG_DEBUG, "Debug:: I`m %s(%d) ...\n", __func__, __LINE__) extern int Verbose; #endif