fix for -v from Juergen Kammer
This commit is contained in:
parent
54c6a93a27
commit
4ae7dabffe
2 changed files with 9 additions and 2 deletions
3
Changes
3
Changes
|
|
@ -1,3 +1,6 @@
|
||||||
|
* ??? 2.0.2
|
||||||
|
- Apply patch to fix -v option from Juergen Kammer.
|
||||||
|
|
||||||
* Tue Jul 13 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.1
|
* Tue Jul 13 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.1
|
||||||
- Update INSTALL, Docs/manual.html documentation.
|
- Update INSTALL, Docs/manual.html documentation.
|
||||||
- Add INTERNALS documentation.
|
- Add INTERNALS documentation.
|
||||||
|
|
|
||||||
8
l2tpns.c
8
l2tpns.c
|
|
@ -4,7 +4,7 @@
|
||||||
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
||||||
// vim: sw=8 ts=8
|
// vim: sw=8 ts=8
|
||||||
|
|
||||||
char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.14 2004-07-12 08:21:45 bodea Exp $";
|
char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.15 2004-07-12 15:16:27 bodea Exp $";
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
@ -2837,6 +2837,7 @@ void dump_acct_info()
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int o;
|
int o;
|
||||||
|
int optdebug = 0;
|
||||||
|
|
||||||
_program_name = strdup(argv[0]);
|
_program_name = strdup(argv[0]);
|
||||||
|
|
||||||
|
|
@ -2853,7 +2854,7 @@ int main(int argc, char *argv[])
|
||||||
if (fork()) exit(0);
|
if (fork()) exit(0);
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
config->debug++;
|
optdebug++;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
snprintf(hostname, sizeof(hostname), "%s", optarg);
|
snprintf(hostname, sizeof(hostname), "%s", optarg);
|
||||||
|
|
@ -2881,6 +2882,9 @@ int main(int argc, char *argv[])
|
||||||
initiptables();
|
initiptables();
|
||||||
initplugins();
|
initplugins();
|
||||||
initdata();
|
initdata();
|
||||||
|
|
||||||
|
config->debug = optdebug;
|
||||||
|
|
||||||
init_tbf();
|
init_tbf();
|
||||||
init_cli(hostname);
|
init_cli(hostname);
|
||||||
read_config_file();
|
read_config_file();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue