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>
SVN-Revision: 42748
local iface="$2"
local link="6to4-$cfg"
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 )
( proto_add_host_dependency "$cfg" 0.0.0.0 )
json_add_string mode sit
json_add_int mtu "${mtu:-1280}"
json_add_int ttl "${ttl:-64}"
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
json_add_string local "$ipaddr"
proto_close_tunnel
proto_config_add_string "ipaddr"
proto_config_add_int "mtu"
proto_config_add_int "ttl"
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"
}
proto_config_add_boolean "sourcerouting"
}