aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/6in4/files
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2013-01-15 13:08:05 +0000
committerSteven Barth <cyrus@openwrt.org>2013-01-15 13:08:05 +0000
commit2a94f67029eb9c58faca930687751f0ca7202050 (patch)
tree140b99e0e89c15d9d339374788002b11365e00d0 /package/network/ipv6/6in4/files
parenta1e92f6dd136564cd129b4ea5ac4a0860f030cb4 (diff)
downloadupstream-2a94f67029eb9c58faca930687751f0ca7202050.tar.gz
upstream-2a94f67029eb9c58faca930687751f0ca7202050.tar.bz2
upstream-2a94f67029eb9c58faca930687751f0ca7202050.zip
6in4: add support for native IPv6 prefix handling
SVN-Revision: 35171
Diffstat (limited to 'package/network/ipv6/6in4/files')
-rwxr-xr-xpackage/network/ipv6/6in4/files/6in4.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/network/ipv6/6in4/files/6in4.sh b/package/network/ipv6/6in4/files/6in4.sh
index 651d7b97b7..ef25322346 100755
--- a/package/network/ipv6/6in4/files/6in4.sh
+++ b/package/network/ipv6/6in4/files/6in4.sh
@@ -14,8 +14,8 @@ proto_6in4_setup() {
local iface="$2"
local link="6in4-$cfg"
- local mtu ttl ipaddr peeraddr ip6addr tunnelid username password
- json_get_vars mtu ttl ipaddr peeraddr ip6addr tunnelid username password
+ local mtu ttl ipaddr peeraddr ip6addr ip6prefix tunnelid username password
+ json_get_vars mtu ttl ipaddr peeraddr ip6addr ip6prefix tunnelid username password
[ -z "$peeraddr" ] && {
proto_notify_error "$cfg" "MISSING_ADDRESS"
@@ -43,6 +43,8 @@ proto_6in4_setup() {
proto_add_ipv6_address "$local6" "$mask6"
}
+ [ -n "$ip6prefix" ] && proto_add_ipv6_prefix "$ip6prefix"
+
proto_add_tunnel
json_add_string mode sit
json_add_int mtu "${mtu:-1280}"
@@ -79,6 +81,7 @@ proto_6in4_init_config() {
proto_config_add_string "ipaddr"
proto_config_add_string "ip6addr"
+ proto_config_add_string "ip6prefix"
proto_config_add_string "peeraddr"
proto_config_add_string "tunnelid"
proto_config_add_string "username"