X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;h=ec36bfe6be540a9cddc786277eb895187903fe7e;hb=509f04959ad891d7f981f035ed461d51bd1f74b0;hp=e93c91510e03bb53b28734a91e790e67ecb903bc;hpb=f7307b3f74f9a2fd64acc77b0c884ed1cc9afe56;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index e93c915..ec36bfe 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -54,6 +54,8 @@ #include #include #include +#include +#include #ifdef PPP_WITH_PLUGINS #include #endif @@ -136,7 +138,7 @@ char path_ipv6up[MAXPATHLEN]; /* pathname of ipv6-up script */ char path_ipv6down[MAXPATHLEN]; /* pathname of ipv6-down script */ #endif -#ifdef MAXOCTETS +#ifdef PPP_WITH_MAXOCTETS unsigned int maxoctets = 0; /* default - no limit */ int maxoctets_dir = 0; /* default - sum of traffic */ int maxoctets_timeout = 1; /* default 1 second */ @@ -182,7 +184,7 @@ static int setpassfilter(char **); static int setactivefilter(char **); #endif -#ifdef MAXOCTETS +#ifdef PPP_WITH_MAXOCTETS static int setmodir(char **); #endif @@ -371,7 +373,7 @@ option_t general_options[] = { "set filter for active pkts", OPT_PRIO }, #endif -#ifdef MAXOCTETS +#ifdef PPP_WITH_MAXOCTETS { "maxoctets", o_int, &maxoctets, "Set connection traffic limit", OPT_PRIO | OPT_LLIMIT | OPT_NOINCR | OPT_ZEROINF }, @@ -1572,7 +1574,7 @@ setlogfile(char **argv) return 1; } -#ifdef MAXOCTETS +#ifdef PPP_WITH_MAXOCTETS static int setmodir(char **argv) {