summaryrefslogtreecommitdiff
path: root/openwrt/package/pptp/files
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
commit6bb334c1e3a2df28539aaaa0bd88f4876b2fc561 (patch)
tree9a5d6c2bd1a9bd7cd2adf623aca05e4b6d3869c7 /openwrt/package/pptp/files
parent7a34af038528fca2e3f99218f79161b7851ca059 (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@3401 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/pptp/files')
-rw-r--r--openwrt/package/pptp/files/ifup.pptp1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp
index fe04d97848..9b1ac07c26 100644
--- a/openwrt/package/pptp/files/ifup.pptp
+++ b/openwrt/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