summaryrefslogtreecommitdiff
path: root/pppd/demand.c
diff options
context:
space:
mode:
authorEivind Næss <eivnaes@yahoo.com>2021-08-06 16:52:33 -0700
committerEivind Næss <eivnaes@yahoo.com>2022-07-15 15:25:39 -0700
commitf7307b3f74f9a2fd64acc77b0c884ed1cc9afe56 (patch)
tree5dec0b047b937babeb0aaba2cdbda8f3bc781836 /pppd/demand.c
parent898d3f4b437ca1348abc1bbd036b0106c66a7ba6 (diff)
downloadppp-f7307b3f74f9a2fd64acc77b0c884ed1cc9afe56.tar.gz
Changing PPP_FILTER to PPP_WITH_FILTER for consistency.
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Diffstat (limited to 'pppd/demand.c')
-rw-r--r--pppd/demand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pppd/demand.c b/pppd/demand.c
index 0943e8a..3e32079 100644
--- a/pppd/demand.c
+++ b/pppd/demand.c
@@ -47,7 +47,7 @@
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/socket.h>
-#ifdef PPP_FILTER
+#ifdef PPP_WITH_FILTER
#include <pcap-bpf.h>
#endif
@@ -102,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
@@ -336,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)