summaryrefslogtreecommitdiff
path: root/package/network/services/ppp/files/ppp.sh
diff options
context:
space:
mode:
authorUlrich Weber <ulrich.weber@riverbed.com>2017-02-10 14:28:09 +0100
committerHans Dedecker <hans.dedecker@technicolor.com>2017-02-13 18:48:33 +0100
commitd5221d5a419c14456bccba9f6825567839082fb0 (patch)
tree4a3a07a3f203e8483a76ac8474ab4fc3e110eda4 /package/network/services/ppp/files/ppp.sh
parentbb9d2aa8681a9ea975ff86ec03d73ffc16e6534d (diff)
downloadmtk-20170518-d5221d5a419c14456bccba9f6825567839082fb0.zip
mtk-20170518-d5221d5a419c14456bccba9f6825567839082fb0.tar.gz
mtk-20170518-d5221d5a419c14456bccba9f6825567839082fb0.tar.bz2
ppp: honor ip6table for IPv6 PPP interfaces
as we do for IPv4 PPP interfaces. When we create the dynamic IPv6 interface we should inherit ip6table from main interface. Signed-off-by: Ulrich Weber <ulrich.weber@riverbed.com>
Diffstat (limited to 'package/network/services/ppp/files/ppp.sh')
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh
index 91452b4..9c27b3c 100755
--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -88,7 +88,7 @@ ppp_generic_setup() {
local config="$1"; shift
local localip
- json_get_vars ipv6 demand keepalive keepalive_adaptive username password pppd_options pppname unnumbered persist maxfail holdoff
+ json_get_vars ipv6 ip6table demand keepalive keepalive_adaptive username password pppd_options pppname unnumbered persist maxfail holdoff
if [ "$ipv6" = 0 ]; then
ipv6=""
elif [ -z "$ipv6" -o "$ipv6" = auto ]; then
@@ -136,6 +136,7 @@ ppp_generic_setup() {
${lcp_failure:+lcp-echo-interval $lcp_interval lcp-echo-failure $lcp_failure $lcp_adaptive} \
${ipv6:++ipv6} \
${autoipv6:+set AUTOIPV6=1} \
+ ${ip6table:+set IP6TABLE=$ip6table} \
nodefaultroute \
usepeerdns \
$demand $persist maxfail $maxfail \