2018-08-09 14:57:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
INTERFACE=$2
|
|
|
|
if [ -z "$INTERFACE" ]; then
|
2018-08-29 08:15:09 +00:00
|
|
|
tracebox -m 30 -l "pkt = ip{dst=to} / tcp{dst=65101} / MPCAPABLE / MSS / WSCALE if string.find(tostring(tracebox(pkt)),'-TCPOptionMPTCPCapable') then print 'MPTCP disabled' elseif string.find(tostring(tracebox(pkt)),'MPTCP') then print 'MPTCP enabled' end" $1
|
2018-08-09 14:57:26 +00:00
|
|
|
else
|
2018-08-29 08:15:09 +00:00
|
|
|
tracebox -m 30 -l "pkt = ip{dst=to} / tcp{dst=65101} / MPCAPABLE / MSS / WSCALE if string.find(tostring(tracebox(pkt)),'-TCPOptionMPTCPCapable') then print 'MPTCP disabled' elseif string.find(tostring(tracebox(pkt)),'MPTCP') then print 'MPTCP enabled' end" -i $INTERFACE $1
|
2018-08-09 14:57:26 +00:00
|
|
|
fi
|