diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-03-18 17:27:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-03-18 17:27:20 +0000 |
commit | 5359dd8c8a0ad7c6c3ea7f0211b26b378263965f (patch) | |
tree | 52813f9ebd13e23690eceb048dcb8cfb54863a17 /package/ppp/files/ifup.pppoa | |
parent | a10c122fe2cdd175541eb14cebe58d599b5c7dce (diff) | |
download | upstream-5359dd8c8a0ad7c6c3ea7f0211b26b378263965f.tar.gz upstream-5359dd8c8a0ad7c6c3ea7f0211b26b378263965f.tar.bz2 upstream-5359dd8c8a0ad7c6c3ea7f0211b26b378263965f.zip |
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/ppp/files/ifup.pppoa')
-rw-r--r-- | package/ppp/files/ifup.pppoa | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/ppp/files/ifup.pppoa b/package/ppp/files/ifup.pppoa index 2ae6019c51..baea25ebf2 100644 --- a/package/ppp/files/ifup.pppoa +++ b/package/ppp/files/ifup.pppoa @@ -25,6 +25,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 |