--- ansh/inc/defs.h 2011/10/14 07:47:20 1.1.1.1.2.4 +++ ansh/inc/defs.h 2015/05/19 23:28:15 1.5.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: defs.h,v 1.1.1.1.2.4 2011/10/14 07:47:20 misho Exp $ + * $Id: defs.h,v 1.5.2.1 2015/05/19 23:28:15 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004 - 2015 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -47,11 +47,15 @@ SUCH DAMAGE. #define __DEFS_H +#ifndef STRSIZ #define STRSIZ 256 -#define ANSH_L2_BUFLEN 1024 +#endif + #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)); \ @@ -76,8 +80,8 @@ struct tagProc { pid_t proc_pid; int proc_sock; - struct sockaddr proc_cli; - struct io_ether_addr proc_ea; + sockaddr_t proc_cli; + ether_addr_t proc_ea; u_short proc_blen; u_char *proc_buf_[2]; @@ -93,6 +97,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