mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Test if VPS support MPTCP
This commit is contained in:
parent
15bff6d3a7
commit
368f23be99
4 changed files with 31 additions and 9 deletions
7
luci-app-openmptcprouter/root/bin/omr-tracebox-mptcp
Executable file
7
luci-app-openmptcprouter/root/bin/omr-tracebox-mptcp
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
INTERFACE=$2
|
||||
if [ -z "$INTERFACE" ]; then
|
||||
tracebox -m 20 -l "pkt = ip{dst=to} / tcp{dst=65101} / MPCAPABLE / MSS / WSCALE if string.find(tostring(tracebox(pkt)),'MPTCP') then print 'MPTCP enabled' else print 'MPTCP disabled' end" $1
|
||||
else
|
||||
tracebox -m 20 -l "pkt = ip{dst=to} / tcp{dst=65101} / MPCAPABLE / MSS / WSCALE if string.find(tostring(tracebox(pkt)),'MPTCP') then print 'MPTCP enabled' else print 'MPTCP disabled' end" -i $INTERFACE $1
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue