X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fdemand.c;h=3e320798355de806223d0dd11896e19892da0930;hp=289c9f8fdd57959588e65835d16cc3adf7950c6a;hb=a12ffcd5b0a1cf9a4920064295c9b02b127465b3;hpb=6531eb055818ea1b4df386b3e7132392771cd0e5 diff --git a/pppd/demand.c b/pppd/demand.c index 289c9f8..3e32079 100644 --- a/pppd/demand.c +++ b/pppd/demand.c @@ -30,6 +30,10 @@ #define RCSID "$Id: demand.c,v 1.20 2005/08/25 12:14:18 paulus Exp $" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -43,7 +47,7 @@ #include #include #include -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER #include #endif @@ -98,7 +102,7 @@ demand_conf(void) || ppp_recv_config(0, PPP_MRU, (u_int32_t) 0, 0, 0) < 0) fatal("Couldn't set up demand-dialled PPP interface: %m"); -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER set_filters(&pass_filter, &active_filter); #endif @@ -332,7 +336,7 @@ active_packet(unsigned char *p, int len) if (len < PPP_HDRLEN) return 0; proto = PPP_PROTOCOL(p); -#ifdef PPP_FILTER +#ifdef PPP_WITH_FILTER p[0] = 1; /* outbound packet indicator */ if ((pass_filter.bf_len != 0 && bpf_filter(pass_filter.bf_insns, p, len, len) == 0)