Author: cyrus
Date: 2014-10-02 21:37:58 +0200 (Thu, 02 Oct 2014)
New Revision: 42747
Modified:
trunk/package/network/ipv6/6rd/files/6rd.sh
Log:
6rd: 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/6rd/files/6rd.sh
===================================================================
--- trunk/package/network/ipv6/6rd/files/6rd.sh 2014-10-02 19:37:36 UTC (rev
42746)
+++ trunk/package/network/ipv6/6rd/files/6rd.sh 2014-10-02 19:37:58 UTC (rev
42747)
@@ -14,8 +14,8 @@
local iface="$2"
local link="6rd-$cfg"
- local mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen
tunlink sourcerouting zone
- json_get_vars mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen
ip4prefixlen tunlink sourcerouting zone
+ local mtu df ttl tos ipaddr peeraddr ip6prefix ip6prefixlen
ip4prefixlen tunlink sourcerouting zone
+ json_get_vars mtu df ttl tos ipaddr peeraddr ip6prefix ip6prefixlen
ip4prefixlen tunlink sourcerouting zone
[ -z "$ip6prefix" -o -z "$peeraddr" ] && {
proto_notify_error "$cfg" "MISSING_ADDRESS"
@@ -67,6 +67,7 @@
json_add_int mtu "${mtu:-1280}"
json_add_boolean df "${df:-1}"
json_add_int ttl "${ttl:-64}"
+ [ -n "$tos" ] && json_add_string tos "$tos"
json_add_string local "$ipaddr"
json_add_string 6rd-prefix "$ip6prefix/$ip6prefixlen"
json_add_string 6rd-relay-prefix "$ip4prefix/$ip4prefixlen"
@@ -91,6 +92,7 @@
proto_config_add_int "mtu"
proto_config_add_boolean "df"
proto_config_add_int "ttl"
+ proto_config_add_string "tos"
proto_config_add_string "ipaddr"
proto_config_add_string "peeraddr"
proto_config_add_string "ip6prefix"
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits