summaryrefslogtreecommitdiff
path: root/package/network/ipv6/6rd/files/6rd.sh
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2014-03-26 10:12:49 +0000
committerSteven Barth <cyrus@openwrt.org>2014-03-26 10:12:49 +0000
commit0555ebf66d415045b176181cde25ba2ed063c09d (patch)
tree7e4c9b3cc2e88b27a8c4dfb6d1877d923e7d16e1 /package/network/ipv6/6rd/files/6rd.sh
parent2a893c205727686089887358498248ea21a91106 (diff)
downloadmtk-20170518-0555ebf66d415045b176181cde25ba2ed063c09d.zip
mtk-20170518-0555ebf66d415045b176181cde25ba2ed063c09d.tar.gz
mtk-20170518-0555ebf66d415045b176181cde25ba2ed063c09d.tar.bz2
6rd / ds-lite: make the firewall-zones of nested-protocols configurable
SVN-Revision: 40020
Diffstat (limited to 'package/network/ipv6/6rd/files/6rd.sh')
-rw-r--r--package/network/ipv6/6rd/files/6rd.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/network/ipv6/6rd/files/6rd.sh b/package/network/ipv6/6rd/files/6rd.sh
index e80729c..58b16c8 100644
--- a/package/network/ipv6/6rd/files/6rd.sh
+++ b/package/network/ipv6/6rd/files/6rd.sh
@@ -14,8 +14,8 @@ proto_6rd_setup() {
local iface="$2"
local link="6rd-$cfg"
- local mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting
- json_get_vars mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting
+ local mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting zone
+ json_get_vars mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting zone
[ -z "$ip6prefix" -o -z "$peeraddr" ] && {
proto_notify_error "$cfg" "MISSING_ADDRESS"
@@ -68,6 +68,10 @@ proto_6rd_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"
}
@@ -89,6 +93,7 @@ proto_6rd_init_config() {
proto_config_add_string "ip4prefixlen"
proto_config_add_string "tunlink"
proto_config_add_boolean "sourcerouting"
+ proto_config_add_string "zone"
}
[ -n "$INCLUDE_ONLY" ] || {