1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Add 6.1 support to MPTCP interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-01-01 10:09:50 +01:00
parent ed36b06234
commit d773ee086d

View file

@ -21,7 +21,7 @@ o:value(0, translate("disable"))
o = s:option(ListValue, "mptcp_path_manager", translate("Multipath TCP path-manager"), translate("Default is fullmesh")) o = s:option(ListValue, "mptcp_path_manager", translate("Multipath TCP path-manager"), translate("Default is fullmesh"))
o:value("default", translate("default")) o:value("default", translate("default"))
o:value("fullmesh", "fullmesh") o:value("fullmesh", "fullmesh")
if uname.release:sub(1,4) ~= "5.14" then if tonumber(uname.release:sub(1,4)) <= 5.15 then
o:value("ndiffports", "ndiffports") o:value("ndiffports", "ndiffports")
o:value("binder", "binder") o:value("binder", "binder")
if uname.release:sub(1,4) ~= "4.14" then if uname.release:sub(1,4) ~= "4.14" then
@ -30,7 +30,7 @@ if uname.release:sub(1,4) ~= "5.14" then
end end
o = s:option(ListValue, "mptcp_scheduler", translate("Multipath TCP scheduler")) o = s:option(ListValue, "mptcp_scheduler", translate("Multipath TCP scheduler"))
o:value("default", translate("default")) o:value("default", translate("default"))
if uname.release:sub(1,4) ~= "5.15" then if tonumber(uname.release:sub(1,4)) <= 5.15 then
o:value("roundrobin", "round-robin") o:value("roundrobin", "round-robin")
o:value("redundant", "redundant") o:value("redundant", "redundant")
if uname.release:sub(1,4) ~= "4.14" then if uname.release:sub(1,4) ~= "4.14" then
@ -38,12 +38,12 @@ if uname.release:sub(1,4) ~= "5.15" then
o:value("ecf", "ECF") o:value("ecf", "ECF")
end end
end end
if uname.release:sub(1,4) ~= "5.15" then if tonumber(uname.release:sub(1,4)) <= 5.15 then
o = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries")) o = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
o.datatype = "uinteger" o.datatype = "uinteger"
o.rmempty = false o.rmempty = false
end end
if uname.release:sub(1,4) ~= "5.15" then if tonumber(uname.release:sub(1,4)) <= 5.15 then
o = s:option(ListValue, "mptcp_version", translate("Multipath TCP version")) o = s:option(ListValue, "mptcp_version", translate("Multipath TCP version"))
o:value(0, translate("0")) o:value(0, translate("0"))
o:value(1, translate("1")) o:value(1, translate("1"))
@ -55,7 +55,7 @@ for cong in string.gmatch(availablecong, "[^%s]+") do
o:value(cong, translate(cong)) o:value(cong, translate(cong))
end end
if uname.release:sub(1,4) == "5.15" then if tonumber(uname.release:sub(1,4)) >= 5.15 then
o = s:option(Value, "mptcp_subflows", translate("specifies the maximum number of additional subflows allowed for each MPTCP connection")) o = s:option(Value, "mptcp_subflows", translate("specifies the maximum number of additional subflows allowed for each MPTCP connection"))
o.datatype = "uinteger" o.datatype = "uinteger"
o.rmempty = false o.rmempty = false