Author: cyrus
Date: 2014-10-02 21:38:15 +0200 (Thu, 02 Oct 2014)
New Revision: 42749

Modified:
   trunk/package/network/ipv6/6in4/files/6in4.sh
Log:
6in4: 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 <[email protected]>

Modified: trunk/package/network/ipv6/6in4/files/6in4.sh
===================================================================
--- trunk/package/network/ipv6/6in4/files/6in4.sh       2014-10-02 19:38:04 UTC 
(rev 42748)
+++ trunk/package/network/ipv6/6in4/files/6in4.sh       2014-10-02 19:38:15 UTC 
(rev 42749)
@@ -14,8 +14,8 @@
        local iface="$2"
        local link="6in4-$cfg"
 
-       local mtu ttl ipaddr peeraddr ip6addr ip6prefix tunnelid username 
password updatekey sourcerouting
-       json_get_vars mtu ttl ipaddr peeraddr ip6addr ip6prefix tunnelid 
username password updatekey sourcerouting
+       local mtu ttl tos ipaddr peeraddr ip6addr ip6prefix tunnelid username 
password updatekey sourcerouting
+       json_get_vars mtu ttl tos ipaddr peeraddr ip6addr ip6prefix tunnelid 
username password updatekey sourcerouting
 
        [ -z "$peeraddr" ] && {
                proto_notify_error "$cfg" "MISSING_ADDRESS"
@@ -56,6 +56,7 @@
        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"
        json_add_string remote "$peeraddr"
        proto_close_tunnel
@@ -96,6 +97,7 @@
        proto_config_add_string "updatekey"
        proto_config_add_int "mtu"
        proto_config_add_int "ttl"
+       proto_config_add_string "tos"
        proto_config_add_boolean "sourcerouting"
 }
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to