diff options
author | Steven Barth <steven@midlink.org> | 2013-12-15 19:38:53 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-12-15 19:38:53 +0000 |
commit | edbe06f4ee0b5a90f92b05c1db5de4f32c54fa43 (patch) | |
tree | 71e06ac05f12023cb29ec48d190713e88c84f85a /package/network/ipv6/6rd/files | |
parent | 430e4caa0f03bf39f59c73acbac1d76feacc4d67 (diff) | |
download | master-187ad058-edbe06f4ee0b5a90f92b05c1db5de4f32c54fa43.tar.gz master-187ad058-edbe06f4ee0b5a90f92b05c1db5de4f32c54fa43.tar.bz2 master-187ad058-edbe06f4ee0b5a90f92b05c1db5de4f32c54fa43.zip |
Convert DHCP->6rd and DHCPv6->DS-Lite autoconfig to dynamic interface
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39061 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/6rd/files')
-rw-r--r-- | package/network/ipv6/6rd/files/6rd.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/ipv6/6rd/files/6rd.sh b/package/network/ipv6/6rd/files/6rd.sh index 7d6cc3ebd3..a3935e1422 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 ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen - json_get_vars mtu ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen + local mtu ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink + json_get_vars mtu ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink [ -z "$ip6prefix" -o -z "$peeraddr" ] && { proto_notify_error "$cfg" "MISSING_ADDRESS" @@ -57,6 +57,7 @@ proto_6rd_setup() { json_add_string local "$ipaddr" json_add_string 6rd-prefix "$ip6prefix/$ip6prefixlen" json_add_string 6rd-relay-prefix "$ip4prefix/$ip4prefixlen" + [ -n "$tunlink" ] && json_add_string link "$tunlink" proto_close_tunnel proto_send_update "$cfg" @@ -77,6 +78,7 @@ proto_6rd_init_config() { proto_config_add_string "ip6prefix" proto_config_add_string "ip6prefixlen" proto_config_add_string "ip4prefixlen" + proto_config_add_string "tunlink" } [ -n "$INCLUDE_ONLY" ] || { |