summaryrefslogtreecommitdiffstats
path: root/package/pptp
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-18 17:27:20 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-18 17:27:20 +0000
commitf71d418315f9efac495af5dcec0e750d195486ea (patch)
tree52813f9ebd13e23690eceb048dcb8cfb54863a17 /package/pptp
parent805ca21a303b1dd83852cf1b5bfe95463787fccd (diff)
precompile ppp active filter (reduces libpcap overhead to only a few k), enable by default to support proper demand dialling, fixes #307
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3401 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp')
-rw-r--r--package/pptp/files/ifup.pptp1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/pptp/files/ifup.pptp b/package/pptp/files/ifup.pptp
index fe04d9784..9b1ac07c2 100644
--- a/package/pptp/files/ifup.pptp
+++ b/package/pptp/files/ifup.pptp
@@ -23,6 +23,7 @@ case "$DEMAND" in
on|1|enabled)
DEMAND=$(nvram get ppp_idletime)
DEMAND=${IDLETIME:+demand idle $IDLETIME}
+ [ -f /etc/ppp/filter ] && DEMAND=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
;;
*) DEMAND="persist";;
esac