1
0
Fork 0
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:
Ycarus 2018-08-10 17:24:44 +02:00
parent 41bc2d5d2d
commit 20fa3d4441
2 changed files with 12 additions and 5 deletions

View 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))