projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
precompile ppp active filter (reduces libpcap overhead to only a few k), enable by...
[openwrt/svn-archive/archive.git]
/
openwrt
/
package
/
ppp
/
files
/
ifup.pppoa
diff --git
a/openwrt/package/ppp/files/ifup.pppoa
b/openwrt/package/ppp/files/ifup.pppoa
index 2ae6019c51cc6d0d4edf31c3651c26d564683516..baea25ebf297428885251434176fa9ecdf634662 100644
(file)
--- a/
openwrt/package/ppp/files/ifup.pppoa
+++ b/
openwrt/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