mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Add BLEST and Netlink in interface
This commit is contained in:
parent
bdd404aef5
commit
61bb05b366
2 changed files with 15 additions and 0 deletions
|
@ -5,6 +5,8 @@ local m, s, o
|
||||||
|
|
||||||
m = Map("network", translate("MPTCP"), translate("Networks MPTCP settings. Visit <a href='http://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCP'>http://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCP</a> for help."))
|
m = Map("network", translate("MPTCP"), translate("Networks MPTCP settings. Visit <a href='http://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCP'>http://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCP</a> for help."))
|
||||||
|
|
||||||
|
local unameinfo = nixio.uname() or { }
|
||||||
|
|
||||||
s = m:section(TypedSection, "globals")
|
s = m:section(TypedSection, "globals")
|
||||||
local mtcpg = s:option(ListValue, "multipath", translate("Multipath TCP"))
|
local mtcpg = s:option(ListValue, "multipath", translate("Multipath TCP"))
|
||||||
mtcpg:value("enable", translate("enable"))
|
mtcpg:value("enable", translate("enable"))
|
||||||
|
@ -20,10 +22,16 @@ mtcppm:value("default", translate("default"))
|
||||||
mtcppm:value("fullmesh", translate("fullmesh"))
|
mtcppm:value("fullmesh", translate("fullmesh"))
|
||||||
mtcppm:value("ndiffports", translate("ndiffports"))
|
mtcppm:value("ndiffports", translate("ndiffports"))
|
||||||
mtcppm:value("binder", translate("binder"))
|
mtcppm:value("binder", translate("binder"))
|
||||||
|
if uname.release:sub(1,4) == "4.19" then
|
||||||
|
mtcppm:value("netlink", translate("Netlink"))
|
||||||
|
end
|
||||||
local mtcpsch = s:option(ListValue, "mptcp_scheduler", translate("Multipath TCP scheduler"))
|
local mtcpsch = s:option(ListValue, "mptcp_scheduler", translate("Multipath TCP scheduler"))
|
||||||
mtcpsch:value("default", translate("default"))
|
mtcpsch:value("default", translate("default"))
|
||||||
mtcpsch:value("roundrobin", translate("round-robin"))
|
mtcpsch:value("roundrobin", translate("round-robin"))
|
||||||
mtcpsch:value("redundant", translate("redundant"))
|
mtcpsch:value("redundant", translate("redundant"))
|
||||||
|
if uname.release:sub(1,4) == "4.19" then
|
||||||
|
mtcpsch:value("blest", translate("BLEST"))
|
||||||
|
end
|
||||||
local mtcpsyn = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
|
local mtcpsyn = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
|
||||||
mtcpsyn.datatype = "uinteger"
|
mtcpsyn.datatype = "uinteger"
|
||||||
mtcpsyn.rmempty = false
|
mtcpsyn.rmempty = false
|
||||||
|
|
|
@ -261,6 +261,7 @@ if network:has_ipv6() then
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
end
|
end
|
||||||
if fs.access("/proc/sys/net/mptcp") then
|
if fs.access("/proc/sys/net/mptcp") then
|
||||||
|
local uname = nixio.uname()
|
||||||
local mtcp = s:option(ListValue, "multipath", translate("Multipath TCP"))
|
local mtcp = s:option(ListValue, "multipath", translate("Multipath TCP"))
|
||||||
mtcp:value("enable", translate("enable"))
|
mtcp:value("enable", translate("enable"))
|
||||||
mtcp:value("disable", translate("disable"))
|
mtcp:value("disable", translate("disable"))
|
||||||
|
@ -272,10 +273,16 @@ if fs.access("/proc/sys/net/mptcp") then
|
||||||
mtcppm:value("fullmesh", translate("fullmesh"))
|
mtcppm:value("fullmesh", translate("fullmesh"))
|
||||||
mtcppm:value("ndiffports", translate("ndiffports"))
|
mtcppm:value("ndiffports", translate("ndiffports"))
|
||||||
mtcppm:value("blinder", translate("blinder"))
|
mtcppm:value("blinder", translate("blinder"))
|
||||||
|
if uname.release:sub(1,4) == "4.19" then
|
||||||
|
mtcppm:value("netlink", translate("Netlink"))
|
||||||
|
end
|
||||||
local mtcpsch = s:option(ListValue, "mptcp_scheduler", translate("Multipath TCP scheduler"))
|
local mtcpsch = s:option(ListValue, "mptcp_scheduler", translate("Multipath TCP scheduler"))
|
||||||
mtcpsch:value("default", translate("default"))
|
mtcpsch:value("default", translate("default"))
|
||||||
mtcpsch:value("roundrobin", translate("round-robin"))
|
mtcpsch:value("roundrobin", translate("round-robin"))
|
||||||
mtcpsch:value("redundant", translate("redundant"))
|
mtcpsch:value("redundant", translate("redundant"))
|
||||||
|
if uname.release:sub(1,4) == "4.19" then
|
||||||
|
mtcpsch:value("blest", translate("BLEST"))
|
||||||
|
end
|
||||||
local mtcpsyn = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
|
local mtcpsyn = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
|
||||||
mtcpsyn.datatype = "uinteger"
|
mtcpsyn.datatype = "uinteger"
|
||||||
mtcpsyn.rmempty = false
|
mtcpsyn.rmempty = false
|
||||||
|
|
Loading…
Reference in a new issue