diff options
author | Steven Barth <steven@midlink.org> | 2014-03-26 10:12:49 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-03-26 10:12:49 +0000 |
commit | 58ca40c218871497e81d4cffacea10bef2c265bf (patch) | |
tree | 5d0ebda34fd6e711497d03a74fce42003345ed32 /package/network/ipv6/ds-lite/files/dslite.sh | |
parent | 3e85c08bbb6bd627bc8edf5f45aa3fcc4d1c8081 (diff) | |
download | upstream-58ca40c218871497e81d4cffacea10bef2c265bf.tar.gz upstream-58ca40c218871497e81d4cffacea10bef2c265bf.tar.bz2 upstream-58ca40c218871497e81d4cffacea10bef2c265bf.zip |
6rd / ds-lite: make the firewall-zones of nested-protocols configurable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40020 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/ds-lite/files/dslite.sh')
-rwxr-xr-x | package/network/ipv6/ds-lite/files/dslite.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/package/network/ipv6/ds-lite/files/dslite.sh b/package/network/ipv6/ds-lite/files/dslite.sh index 67887881e1..f4efa1c4c3 100755 --- a/package/network/ipv6/ds-lite/files/dslite.sh +++ b/package/network/ipv6/ds-lite/files/dslite.sh @@ -14,8 +14,8 @@ proto_dslite_setup() { local iface="$2" local link="dslite-$cfg" - local mtu ttl peeraddr ip6addr tunlink - json_get_vars mtu ttl peeraddr ip6addr tunlink + local mtu ttl peeraddr ip6addr tunlink zone + json_get_vars mtu ttl peeraddr ip6addr tunlink zone [ -z "$peeraddr" ] && { proto_notify_error "$cfg" "MISSING_ADDRESS" @@ -51,6 +51,10 @@ proto_dslite_setup() { [ -n "$tunlink" ] && json_add_string link "$tunlink" proto_close_tunnel + proto_add_data + [ -n "$zone" ] && json_add_string zone "$zone" + proto_close_data + proto_send_update "$cfg" } @@ -67,6 +71,7 @@ proto_dslite_init_config() { proto_config_add_string "tunlink" proto_config_add_int "mtu" proto_config_add_int "ttl" + proto_config_add_string "zone" } [ -n "$INCLUDE_ONLY" ] || { |