From 58ca40c218871497e81d4cffacea10bef2c265bf Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 26 Mar 2014 10:12:49 +0000 Subject: 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 --- package/network/ipv6/ds-lite/Makefile | 2 +- package/network/ipv6/ds-lite/files/dslite.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'package/network/ipv6/ds-lite') 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" ] || { -- cgit v1.2.3