mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix dirty log
This commit is contained in:
parent
dfbe47a281
commit
a3687cc963
1 changed files with 16 additions and 12 deletions
|
@ -4,6 +4,8 @@ START=90
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
|
. /usr/lib/unbound/iptools.sh
|
||||||
|
|
||||||
global_multipath_settings() {
|
global_multipath_settings() {
|
||||||
local multipath mptcp_path_manager mptcp_schdeduler congestion mptcp_checksum mptcp_syn_retries mptcp_fullmesh_num_subflows mptcp_fullmesh_create_on_err mptcp_ndiffports_num_subflows
|
local multipath mptcp_path_manager mptcp_schdeduler congestion mptcp_checksum mptcp_syn_retries mptcp_fullmesh_num_subflows mptcp_fullmesh_create_on_err mptcp_ndiffports_num_subflows
|
||||||
local multipath_status=0
|
local multipath_status=0
|
||||||
|
@ -111,6 +113,7 @@ interface_multipath_settings() {
|
||||||
local netmask6
|
local netmask6
|
||||||
config_get ipaddr6 $config ip6addr
|
config_get ipaddr6 $config ip6addr
|
||||||
config_get gateway6 $config ip6gw
|
config_get gateway6 $config ip6gw
|
||||||
|
if [ -n "$ipaddr6" ]; then
|
||||||
ip6addr=`echo $ip6addr | cut -d/ -f1`
|
ip6addr=`echo $ip6addr | cut -d/ -f1`
|
||||||
netmask6=`ipcalc $ipaddr6 | sed -n '/PREFIX=/{;s/.*=//;s/ .*//;p;}'`
|
netmask6=`ipcalc $ipaddr6 | sed -n '/PREFIX=/{;s/.*=//;s/ .*//;p;}'`
|
||||||
network6=`ipcalc $ip6addr | sed -n '/NETWORK=/{;s/.*=//;s/ .*//;p;}'`
|
network6=`ipcalc $ip6addr | sed -n '/NETWORK=/{;s/.*=//;s/ .*//;p;}'`
|
||||||
|
@ -124,9 +127,10 @@ interface_multipath_settings() {
|
||||||
netmask6=$(ip -6 addr show dev $iface | grep -v 'scope link' | grep inet6 | awk '{print $2}' | cut -d/ -f2 | tr -d "\n")
|
netmask6=$(ip -6 addr show dev $iface | grep -v 'scope link' | grep inet6 | awk '{print $2}' | cut -d/ -f2 | tr -d "\n")
|
||||||
network6=`ipcalc $ip6addr | sed -n '/NETWORK=/{;s/.*=//;s/ .*//;p;}'`
|
network6=`ipcalc $ip6addr | sed -n '/NETWORK=/{;s/.*=//;s/ .*//;p;}'`
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
ip -6 rule del table 6$id > /dev/null 2>&1
|
ip -6 rule del table 6$id > /dev/null 2>&1
|
||||||
ip -6 route flush 6$id > /dev/null 2>&1
|
ip -6 route flush 6$id > /dev/null 2>&1
|
||||||
if [ -n "$gateway6" ] && [ -n "$network6" ]; then
|
if [-n "$ip6addr" ] && [ -n "$gateway6" ] && [ -n "$network6" ]; then
|
||||||
ip -6 rule add from $ip6addr table 6$id
|
ip -6 rule add from $ip6addr table 6$id
|
||||||
ip -6 route replace $network6/$netmask6 dev $iface scope link table 6$id
|
ip -6 route replace $network6/$netmask6 dev $iface scope link table 6$id
|
||||||
ip -6 route replace default via $gateway6 dev $iface table 6$id
|
ip -6 route replace default via $gateway6 dev $iface table 6$id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue