X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;fp=pppd%2Foptions.c;h=42a3456429fb682df83bf26eb467d78c62f25985;hb=c95c6162dd3b5774ee680f9c7df60db217cae161;hp=e93c91510e03bb53b28734a91e790e67ecb903bc;hpb=b2c21894e165d7a0b4f1600fd8a8fd1b21305752;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index e93c915..42a3456 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -136,7 +136,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 +182,7 @@ static int setpassfilter(char **); static int setactivefilter(char **); #endif -#ifdef MAXOCTETS +#ifdef PPP_WITH_MAXOCTETS static int setmodir(char **); #endif @@ -371,7 +371,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 +1572,7 @@ setlogfile(char **argv) return 1; } -#ifdef MAXOCTETS +#ifdef PPP_WITH_MAXOCTETS static int setmodir(char **argv) {