|
version 1.3, 2012/01/23 10:34:12
|
version 1.5, 2015/05/19 23:25:30
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 52 intptr_t Kill;
|
Line 52 intptr_t Kill;
|
| int Verbose; |
int Verbose; |
| u_int Crypted = 1; |
u_int Crypted = 1; |
| proc_head_t pH; |
proc_head_t pH; |
| int bpfLEN, Timeout, Daemon = 1; | int bpfLEN, Timeout = 300, Daemon = 1; |
| char Key[STRSIZ]; |
char Key[STRSIZ]; |
| |
|
| static struct tagProc *proc; |
static struct tagProc *proc; |
|
Line 70 Usage()
|
Line 70 Usage()
|
| "\t-i <id>\tService ID (default is 42)\n" |
"\t-i <id>\tService ID (default is 42)\n" |
| "\t-U <user>\tRun service with other user\n" |
"\t-U <user>\tRun service with other user\n" |
| "\t-C <dir>\tRun service into chroot directory\n" |
"\t-C <dir>\tRun service into chroot directory\n" |
| "\t-t <timeout>\tTimeout of login if no activity (default is 0 sec)\n" | "\t-t <timeout>\tTimeout of login if no activity (default is 300 sec)\n" |
| "\t-k <key>\tService cipher key\n" |
"\t-k <key>\tService cipher key\n" |
| "\t-u\t\tSwitch to unencrypted traffic between hosts\n" |
"\t-u\t\tSwitch to unencrypted traffic between hosts\n" |
| "\t-b\t\tRun into batch mode (default is daemon mode)\n" |
"\t-b\t\tRun into batch mode (default is daemon mode)\n" |
|
Line 121 hook_error(void *root, void *arg)
|
Line 121 hook_error(void *root, void *arg)
|
| int |
int |
| main(int argc, char **argv) |
main(int argc, char **argv) |
| { |
{ |
| io_sockaddr_t sa; | sockaddr_t sa; |
| struct hostent *host; |
struct hostent *host; |
| struct passwd *pass; |
struct passwd *pass; |
| int fd, h = 0, uid = 0, gid = 0; |
int fd, h = 0, uid = 0, gid = 0; |
|
Line 286 main(int argc, char **argv)
|
Line 286 main(int argc, char **argv)
|
| setgid(gid); |
setgid(gid); |
| setuid(uid); |
setuid(uid); |
| |
|
| if (schedRead(root, icmpRx, (void*) id, h)) { | if (schedRead(root, icmpRx, (void*) id, h, NULL, 0)) { |
| schedRun(root, &Kill); |
schedRun(root, &Kill); |
| } else |
} else |
| ERR("Failed to add reader task #%d - %s\n", sched_GetErrno(), sched_GetError()); |
ERR("Failed to add reader task #%d - %s\n", sched_GetErrno(), sched_GetError()); |