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/6rd/files | |
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/6rd/files')
-rw-r--r-- | package/network/ipv6/6rd/files/6rd.sh | 9 |
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 e80729c341..58b16c8ff7 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" ] || { |