X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;fp=pppd%2Foptions.c;h=e93c91510e03bb53b28734a91e790e67ecb903bc;hb=f7307b3f74f9a2fd64acc77b0c884ed1cc9afe56;hp=b35c0591eb0e85d20be96a9c639b7497c35a40d3;hpb=898d3f4b437ca1348abc1bbd036b0106c66a7ba6;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index b35c059..e93c915 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -58,7 +58,7 @@ #include #endif -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER #include /* * There have been 3 or 4 different names for this in libpcap CVS, but @@ -73,7 +73,7 @@ #define DLT_PPP_PPPD DLT_PPP #endif #endif -#endif /* PPP_FILTER */ +#endif /* PPP_WITH_FILTER */ #include "pppd.h" #include "pathnames.h" @@ -146,7 +146,7 @@ int maxoctets_timeout = 1; /* default 1 second */ extern option_t auth_options[]; extern struct stat devstat; -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER struct bpf_program pass_filter;/* Filter program for packets to pass */ struct bpf_program active_filter; /* Filter program for link-active pkts */ #endif @@ -177,7 +177,7 @@ static int setlogfile(char **); static int loadplugin(char **); #endif -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER static int setpassfilter(char **); static int setactivefilter(char **); #endif @@ -363,7 +363,7 @@ option_t general_options[] = { "Load a plug-in module into pppd", OPT_PRIV | OPT_A2LIST }, #endif -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER { "pass-filter", o_special, setpassfilter, "set filter for packets to pass", OPT_PRIO }, @@ -1482,7 +1482,7 @@ callfile(char **argv) return ok; } -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER /* * setpassfilter - Set the pass filter for packets */