X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fnetwork%2Fipv6%2F6rd%2Ffiles%2F6rd.sh;h=042d98559fdce29d6ad9c4d92fd3f09e6389ca0b;hb=e9d15da0dae95e54b7dab7ff49173c842c7ccf34;hp=db70b5a6c1a40ded1aa7f9bae9fe13f259b11c80;hpb=36b05bbed34c8f4192ea04d17a030fc78e6e5c4f;p=lede-git%2F.git diff --git a/package/network/ipv6/6rd/files/6rd.sh b/package/network/ipv6/6rd/files/6rd.sh index db70b5a6c1..042d98559f 100644 --- a/package/network/ipv6/6rd/files/6rd.sh +++ b/package/network/ipv6/6rd/files/6rd.sh @@ -14,8 +14,8 @@ proto_6rd_setup() { 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 @@ proto_6rd_setup() { 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_6rd_init_config() { 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"