1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add and fix some MPTCP settings

This commit is contained in:
Ycarus 2018-06-08 19:07:53 +02:00
parent 0baa8cba4b
commit 5e05415e4e
4 changed files with 42 additions and 6 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh
if [ "$(uci -q show network.globals | grep mptcp)" = "" ]; then
if [ "$(uci -q show network.globals | grep mptcp_path_manager)" = "" ]; then
uci -q batch <<-EOF
set network.globals.multipath='enable'
set network.globals.mptcp_path_manager='fullmesh'
@ -10,6 +10,25 @@ if [ "$(uci -q show network.globals | grep mptcp)" = "" ]; then
commit network
EOF
fi
if [ "$(uci -q get network.globals.mptcp_checksum")" = "enable" ]; then
uci -q batch <<-EOF
set network.globals.mptcp_checksum=1
EOF
fi
if [ "$(uci -q get network.globals.mptcp_checksum")" = "disable" ]; then
uci -q batch <<-EOF
set network.globals.mptcp_checksum=0
EOF
fi
if [ "$(uci -q show network.globals | grep mptcp_fullmesh)" = "" ]; then
uci -q batch <<-EOF
set network.globals.mptcp_fullmesh_num_subflows=1
set network.globals.mptcp_fullmesh_create_on_err=0
set network.globals.mptcp_ndiffports_num_subflows=1
commit network
EOF
fi
uci -q batch <<-EOF
delete ucitrack.@mptcp[-1]
add ucitrack mptcp