aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-10-02 19:38:04 +0000
committerSteven Barth <steven@midlink.org>2014-10-02 19:38:04 +0000
commitb5cf0a125bac523ce9e819be8320467230b4d31b (patch)
tree2cd6356c1518a62b543b1957c95b107c1e61851b /package/network/ipv6
parent35fbc3abaa15f4aa636afdedb55f3accc478dce0 (diff)
downloadmaster-187ad058-b5cf0a125bac523ce9e819be8320467230b4d31b.tar.gz
master-187ad058-b5cf0a125bac523ce9e819be8320467230b4d31b.tar.bz2
master-187ad058-b5cf0a125bac523ce9e819be8320467230b4d31b.zip
6to4: Tos support
Tos support is added as a string parameter which can have the following values : -inherit (outer header inherits the tos value of the inner header) -hex value Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42748 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6')
-rwxr-xr-xpackage/network/ipv6/6to4/files/6to4.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/ipv6/6to4/files/6to4.sh b/package/network/ipv6/6to4/files/6to4.sh
index 2a9b26292c..ce1de53ea8 100755
--- a/package/network/ipv6/6to4/files/6to4.sh
+++ b/package/network/ipv6/6to4/files/6to4.sh
@@ -34,8 +34,8 @@ proto_6to4_setup() {
local iface="$2"
local link="6to4-$cfg"
- local mtu ttl ipaddr sourcerouting
- json_get_vars mtu ttl ipaddr sourcerouting
+ local mtu ttl tos ipaddr sourcerouting
+ json_get_vars mtu ttl tos ipaddr sourcerouting
( proto_add_host_dependency "$cfg" 0.0.0.0 )
@@ -77,6 +77,7 @@ proto_6to4_setup() {
json_add_string mode sit
json_add_int mtu "${mtu:-1280}"
json_add_int ttl "${ttl:-64}"
+ [ -n "$tos" ] && json_add_string tos "$tos"
json_add_string local "$ipaddr"
proto_close_tunnel
@@ -94,6 +95,7 @@ proto_6to4_init_config() {
proto_config_add_string "ipaddr"
proto_config_add_int "mtu"
proto_config_add_int "ttl"
+ proto_config_add_string "tos"
proto_config_add_boolean "sourcerouting"
}