--- ansh/src/ansh3d.c 2012/01/23 16:13:07 1.3.2.1 +++ ansh/src/ansh3d.c 2015/05/19 23:25:30 1.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: ansh3d.c,v 1.3.2.1 2012/01/23 16:13:07 misho Exp $ + * $Id: ansh3d.c,v 1.5 2015/05/19 23:25:30 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, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -52,7 +52,7 @@ intptr_t Kill; int Verbose; u_int Crypted = 1; proc_head_t pH; -int bpfLEN, Timeout, Daemon = 1; +int bpfLEN, Timeout = 300, Daemon = 1; char Key[STRSIZ]; static struct tagProc *proc; @@ -70,7 +70,7 @@ Usage() "\t-i \tService ID (default is 42)\n" "\t-U \tRun service with other user\n" "\t-C \tRun service into chroot directory\n" - "\t-t \tTimeout of login if no activity (default is 0 sec)\n" + "\t-t \tTimeout of login if no activity (default is 300 sec)\n" "\t-k \tService cipher key\n" "\t-u\t\tSwitch to unencrypted traffic between hosts\n" "\t-b\t\tRun into batch mode (default is daemon mode)\n" @@ -121,7 +121,7 @@ hook_error(void *root, void *arg) int main(int argc, char **argv) { - io_sockaddr_t sa; + sockaddr_t sa; struct hostent *host; struct passwd *pass; int fd, h = 0, uid = 0, gid = 0;