version 1.1.1.3, 2016/11/01 09:56:12
|
version 1.1.1.4, 2021/03/17 00:39:23
|
Line 106
|
Line 106
|
|
|
#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 174 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 325 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 375 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 449 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) { |