mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-11 09:16:48 +08:00
moved debug option from options.c to ppp.c
This commit is contained in:
parent
6db3026d47
commit
fb396b8fac
@ -81,11 +81,13 @@
|
|||||||
char *strdup (char *);
|
char *strdup (char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
struct option_value {
|
struct option_value {
|
||||||
struct option_value *next;
|
struct option_value *next;
|
||||||
const char *source;
|
const char *source;
|
||||||
char value[1];
|
char value[1];
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Option variables and default values.
|
* Option variables and default values.
|
||||||
@ -142,13 +144,17 @@ struct bpf_program pass_filter;/* Filter program for packets to pass */
|
|||||||
struct bpf_program active_filter; /* Filter program for link-active pkts */
|
struct bpf_program active_filter; /* Filter program for link-active pkts */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
char *current_option; /* the name of the option being parsed */
|
char *current_option; /* the name of the option being parsed */
|
||||||
int privileged_option; /* set iff the current option came from root */
|
int privileged_option; /* set iff the current option came from root */
|
||||||
char *option_source; /* string saying where the option came from */
|
char *option_source; /* string saying where the option came from */
|
||||||
|
#endif
|
||||||
#if 0 /* UNUSED */
|
#if 0 /* UNUSED */
|
||||||
int option_priority = OPRIO_CFGFILE; /* priority of the current options */
|
int option_priority = OPRIO_CFGFILE; /* priority of the current options */
|
||||||
#endif /* UNUSED */
|
#endif /* UNUSED */
|
||||||
|
#if 0
|
||||||
bool devnam_fixed; /* can no longer change device name */
|
bool devnam_fixed; /* can no longer change device name */
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0 /* UNUSED */
|
#if 0 /* UNUSED */
|
||||||
static int logfile_fd = -1; /* fd opened for log file */
|
static int logfile_fd = -1; /* fd opened for log file */
|
||||||
|
|||||||
@ -150,6 +150,7 @@
|
|||||||
*/
|
*/
|
||||||
/* FIXME: global variables per PPP session */
|
/* FIXME: global variables per PPP session */
|
||||||
/* FIXME: clean global variables */
|
/* FIXME: clean global variables */
|
||||||
|
int debug = 0; /* Debug flag */
|
||||||
int phase; /* where the link is at */
|
int phase; /* where the link is at */
|
||||||
int error_count; /* # of times error() has been called */
|
int error_count; /* # of times error() has been called */
|
||||||
int unsuccess; /* # unsuccessful connection attempts */
|
int unsuccess; /* # unsuccessful connection attempts */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user