mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add mptcp trace script
This commit is contained in:
parent
41bc2d5d2d
commit
20fa3d4441
2 changed files with 12 additions and 5 deletions
10
tracebox/files/usr/share/tracebox/omr-mptcp-trace.lua
Normal file
10
tracebox/files/usr/share/tracebox/omr-mptcp-trace.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
pkt = ip{dst=to} / tcp{dst=65101} / MPCAPABLE
|
||||
function cb(ttl, r_ip, mod)
|
||||
if r_ip == nil then
|
||||
r_ip = "*"
|
||||
end
|
||||
print(ttl .. ": " .. tostring(r_ip) .. " " .. tostring(mod))
|
||||
-- print(tostring(mod:original():ip()))
|
||||
end
|
||||
result = tracebox(pkt, {callback="cb"})
|
||||
print("\nResult:\n" .. tostring(result))
|
Loading…
Add table
Add a link
Reference in a new issue