--- ansh/inc/defs.h 2011/10/13 16:08:52 1.1.1.1.2.3 +++ ansh/inc/defs.h 2011/10/17 20:14:02 1.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: defs.h,v 1.1.1.1.2.3 2011/10/13 16:08:52 misho Exp $ + * $Id: defs.h,v 1.2 2011/10/17 20:14:02 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -48,10 +48,11 @@ SUCH DAMAGE. #define STRSIZ 256 -#define ANSH_L2_BUFLEN 1024 #define PIDFILE_ANSHD "/var/run/anshd.pid" #define PIDFILE_ANSH3D "/var/run/ansh3d.pid" +#define DEFAULT_KEY "_ansh_ELWIX_" + #define VERB(x) if ((x) <= Verbose) #define FTRACE(x) if ((x) <= Verbose) syslog(LOG_DEBUG, "Debug:: I`m in %s(%d) ...\n", __func__, __LINE__) #define LOG(fmt, ...) do { assert((fmt)); \ @@ -77,7 +78,7 @@ struct tagProc { int proc_sock; struct sockaddr proc_cli; - struct ether_addr proc_ea; + struct io_ether_addr proc_ea; u_short proc_blen; u_char *proc_buf_[2]; @@ -93,6 +94,7 @@ typedef SLIST_HEAD(, tagProc) proc_head_t; extern intptr_t Kill; extern int Timeout, Verbose; extern u_int Crypted; +extern char Key[STRSIZ]; #endif