From: Jo-Philipp Wich Date: Mon, 7 Jun 2021 11:59:03 +0000 (+0200) Subject: protocols: unify TOS and TTL description strings X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=12b5dd9ff3e70a3d220c0b2a920acf98cf7fa4ad;p=project%2Fluci.git protocols: unify TOS and TTL description strings Signed-off-by: Jo-Philipp Wich (backported from commit b4c394f2d275ab093a16d994333da4f104e1723f) --- diff --git a/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js b/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js index 2b24e59460..91837b29c3 100644 --- a/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js +++ b/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js @@ -66,12 +66,12 @@ return network.registerProtocol('gre', { o.placeholder = 1280; o.datatype = 'range(68, 9200)'; - o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64) (optional).")); + o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64).")); o.optional = true; o.placeholder = 64; o.datatype = 'min(1)'; - o = s.taboption('advanced', form.Value, 'tos', _("Override TOS"), _("Specify a TOS (Type of Service). Can be inherit (the outer header inherits the value of the inner header), or an hexadecimal value 00..FF (optional).")); + o = s.taboption('advanced', form.Value, 'tos', _("Override TOS"), _("Specify a TOS (Type of Service). Can be inherit (the outer header inherits the value of the inner header) or an hexadecimal value 00..FF (optional).")); o.optional = true; o.validate = function(section_id, value) { if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i)) diff --git a/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js b/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js index 6b029591b3..97b84754ff 100644 --- a/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js +++ b/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js @@ -76,7 +76,7 @@ return network.registerProtocol('grev6', { o.placeholder = 64; o.datatype = 'min(1)'; - o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a Traffic Class. Can be inherit (the outer header inherits the value of the inner header) or an hexadecimal value 00..FF (optional).")); + o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a TOS (Type of Service). Can be inherit (the outer header inherits the value of the inner header) or an hexadecimal value 00..FF (optional).")); o.optional = true; o.validate = function(section_id, value) { if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))