diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-03-26 10:12:49 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-03-26 10:12:49 +0000 |
commit | 0555ebf66d415045b176181cde25ba2ed063c09d (patch) | |
tree | 7e4c9b3cc2e88b27a8c4dfb6d1877d923e7d16e1 /package/network/ipv6/ds-lite | |
parent | 2a893c205727686089887358498248ea21a91106 (diff) | |
download | upstream-0555ebf66d415045b176181cde25ba2ed063c09d.tar.gz upstream-0555ebf66d415045b176181cde25ba2ed063c09d.tar.bz2 upstream-0555ebf66d415045b176181cde25ba2ed063c09d.zip |
6rd / ds-lite: make the firewall-zones of nested-protocols configurable
SVN-Revision: 40020
Diffstat (limited to 'package/network/ipv6/ds-lite')
-rw-r--r-- | package/network/ipv6/ds-lite/Makefile | 2 | ||||
-rwxr-xr-x | package/network/ipv6/ds-lite/files/dslite.sh | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/package/network/ipv6/ds-lite/Makefile b/package/network/ipv6/ds-lite/Makefile index 688ddf9017..a806f67ab9 100644 --- a/package/network/ipv6/ds-lite/Makefile +++ b/package/network/ipv6/ds-lite/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ds-lite -PKG_VERSION:=1 +PKG_VERSION:=2 PKG_RELEASE:=1 include $(INCLUDE_DIR)/package.mk 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" ] || { |