mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 04:33:56 +08:00
💐 Sync 2026-09-10 14:49:21
This commit is contained in:
1 parent
0e9e9c2496
commit
7b0b16dcd4
181 files changed
+23375
-22143
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mptcp
|
||||
PKG_VERSION:=6.1
|
||||
PKG_RELEASE:=15
|
||||
PKG_RELEASE:=16
|
||||
|
||||
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
@@ -8,10 +8,21 @@ if [ -f /proc/sys/net/mptcp/available_schedulers ]; then
|
||||
else
|
||||
_omr_default_sched='blest'
|
||||
fi
|
||||
# Same for the path manager: mainline registers its path managers by name
|
||||
# and advertises the list, and the out-of-tree v0.9x names
|
||||
# (default/fullmesh/ndiffports/binder/netlink) exist nowhere there --
|
||||
# 'kernel' is the in-kernel netlink path manager, the one that actually
|
||||
# creates the extra subflows. Sending a v0 name to the VPS leaves a
|
||||
# 'net.mptcp.path_manager=fullmesh' line there that fails at every boot.
|
||||
if [ -f /proc/sys/net/mptcp/available_path_managers ]; then
|
||||
_omr_default_pm='kernel'
|
||||
else
|
||||
_omr_default_pm='fullmesh'
|
||||
fi
|
||||
if [ "$(uci -q get network.globals.mptcp_path_manager)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.globals.multipath='enable'
|
||||
set network.globals.mptcp_path_manager='fullmesh'
|
||||
set network.globals.mptcp_path_manager='${_omr_default_pm}'
|
||||
set network.globals.mptcp_scheduler='${_omr_default_sched}'
|
||||
set network.globals.congestion='bbr2'
|
||||
set network.globals.mptcp_checksum=0
|
||||
@@ -44,6 +55,20 @@ if [ -f /proc/sys/net/mptcp/available_schedulers ]; then
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# Legacy v0.9x path manager names carried over to a 6.x kernel. Only the
|
||||
# names that never exist upstream are migrated, and every one of them is an
|
||||
# in-kernel path manager, so they all map onto 'kernel'; a name this kernel
|
||||
# does register ('userspace', a BPF path manager) is left alone.
|
||||
if [ -f /proc/sys/net/mptcp/available_path_managers ]; then
|
||||
case "$(uci -q get network.globals.mptcp_path_manager)" in
|
||||
default|fullmesh|ndiffports|binder|netlink)
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.globals.mptcp_path_manager='kernel'
|
||||
commit network
|
||||
EOF
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# BBRv2 is replaced by BBRv3
|
||||
if [ "$(uci -q get network.globals.congestion)" = "bbr2" ] && [ -z "$(uname -a | grep 5.4)" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
|
||||
Reference in new issue
Block a user