version 1.1.1.3, 2016/11/01 09:56:12
|
version 1.1.1.4.2.1, 2023/09/27 11:08:01
|
Line 97
|
Line 97
|
#ifndef NOWEB |
#ifndef NOWEB |
struct web gWeb; |
struct web gWeb; |
#endif |
#endif |
|
#ifdef USE_RADIUS |
struct radsrv gRadsrv; |
struct radsrv gRadsrv; |
|
#endif |
int gBackground = FALSE; |
int gBackground = FALSE; |
int gShutdownInProgress = FALSE; |
int gShutdownInProgress = FALSE; |
int gOverload = 0; |
int gOverload = 0; |
Line 106
|
Line 108
|
|
|
#ifdef PHYSTYPE_PPTP |
#ifdef PHYSTYPE_PPTP |
int gPPTPto = 10; |
int gPPTPto = 10; |
int gPPTPtunlimit = 100; | unsigned gPPTPtunlimit = 100; |
#endif |
#endif |
#ifdef PHYSTYPE_L2TP |
#ifdef PHYSTYPE_L2TP |
int gL2TPto = 10; |
int gL2TPto = 10; |
#if ((__FreeBSD_version > 603100 && __FreeBSD_version < 700000) || __FreeBSD_version >= 700055) |
#if ((__FreeBSD_version > 603100 && __FreeBSD_version < 700000) || __FreeBSD_version >= 700055) |
int gL2TPtunlimit = 100; | unsigned gL2TPtunlimit = 100; |
#else |
#else |
int gL2TPtunlimit = 10; | unsigned gL2TPtunlimit = 10; |
#endif |
#endif |
#endif |
#endif |
int gChildren = 0; /* Current number of children links */ |
int gChildren = 0; /* Current number of children links */ |
Line 174 main(int ac, char *av[])
|
Line 176 main(int ac, char *av[])
|
int ret, k; |
int ret, k; |
char *args[MAX_ARGS]; |
char *args[MAX_ARGS]; |
Context c; |
Context c; |
PhysType pt; | const struct phystype *pt; |
|
|
gPid = getpid(); |
gPid = getpid(); |
|
|
Line 325 ConfigRead(int type, void *arg)
|
Line 327 ConfigRead(int type, void *arg)
|
Context c = (Context)arg; |
Context c = (Context)arg; |
int err; |
int err; |
|
|
|
(void)type; |
/* Read startup configuration section */ |
/* Read startup configuration section */ |
err = ReadFile(gConfigFile, STARTUP_CONF, DoCommand, c); |
err = ReadFile(gConfigFile, STARTUP_CONF, DoCommand, c); |
|
|
Line 374 DoExit(int code)
|
Line 377 DoExit(int code)
|
Bund b; |
Bund b; |
Rep r; |
Rep r; |
Link l; |
Link l; |
PhysType pt; | const struct phystype *pt; |
int k; |
int k; |
|
|
gShutdownInProgress=1; |
gShutdownInProgress=1; |
Line 448 SignalHandler(int type, void *arg)
|
Line 451 SignalHandler(int type, void *arg)
|
{ |
{ |
u_char sig; |
u_char sig; |
|
|
|
(void)type; |
|
(void)arg; |
read(gSignalPipe[0], &sig, sizeof(sig)); |
read(gSignalPipe[0], &sig, sizeof(sig)); |
|
|
switch(sig) { |
switch(sig) { |
Line 551 OpenCloseSignal(int sig)
|
Line 556 OpenCloseSignal(int sig)
|
if (sig == SIGUSR1) { |
if (sig == SIGUSR1) { |
Log(LG_ALWAYS, ("[%s] rec'd signal %s, opening", |
Log(LG_ALWAYS, ("[%s] rec'd signal %s, opening", |
l->name, sys_signame[sig])); |
l->name, sys_signame[sig])); |
RecordLinkUpDownReason(NULL, l, 1, STR_MANUALLY, NULL); | LinkOpenAdm(l); |
LinkOpen(l); | |
} else { |
} else { |
Log(LG_ALWAYS, ("[%s] rec'd signal %s, closing", |
Log(LG_ALWAYS, ("[%s] rec'd signal %s, closing", |
l->name, sys_signame[sig])); |
l->name, sys_signame[sig])); |
RecordLinkUpDownReason(NULL, l, 0, STR_MANUALLY, NULL); | LinkCloseAdm(l); |
LinkClose(l); | |
} |
} |
} else |
} else |
Log(LG_ALWAYS, ("rec'd signal %s, ignored", sys_signame[sig])); |
Log(LG_ALWAYS, ("rec'd signal %s, ignored", sys_signame[sig])); |