mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 02:13:56 +08:00
🎈 Sync 2026-08-24 18:23:48
This commit is contained in:
1 parent
91bee6a90e
commit
6b8877f5e1
119 files changed
+2501
-2677
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mptcp
|
||||
PKG_VERSION:=6.1
|
||||
PKG_RELEASE:=10
|
||||
PKG_RELEASE:=11
|
||||
|
||||
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
@@ -549,8 +549,22 @@ interface_multipath_settings() {
|
||||
|
||||
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ] && [ -n "$(ip a show dev $iface | grep inet)" ]; then
|
||||
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
|
||||
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
|
||||
multipath "$iface" "on" "$id"
|
||||
if [ "$(uci -q get openmptcprouter.${config}.state)" = "down" ]; then
|
||||
# omr-tracker still considers this interface down (it only
|
||||
# flips state to "up" once its recovery counter is
|
||||
# satisfied): this reload was triggered by netifd's own
|
||||
# ifup/link-up event, independent of that check, so keep the
|
||||
# endpoint as backup instead of promoting it straight to
|
||||
# master/on - the tracker's own post-tracking (003-up) will
|
||||
# do the real promotion once recovery is actually confirmed.
|
||||
# Prevents re-promoting a still-flaky WAN right after link
|
||||
# recovery (issue #4355).
|
||||
logger -t "MPTCP" "$iface tracker state is down, keep as backup instead of $mode from $(multipath $iface)"
|
||||
multipath "$iface" "backup" "$id"
|
||||
else
|
||||
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
|
||||
multipath "$iface" "on" "$id"
|
||||
fi
|
||||
elif ([ "$mode" = "off" ] || [ -z "$mode" ]) && [ -z "$(multipath $iface | grep deactivated)" ]; then
|
||||
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
|
||||
multipath "$iface" "$mode" "$id"
|
||||
|
||||
Reference in new issue
Block a user