Skip to content

Commit 5073891

Browse files
committed
Echo needs expectations to be permantent, and can use a default filter.
1 parent 58125d7 commit 5073891

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

echo.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module(..., package.seeall)
66

77
require"net"
88

9+
arg.filter = "(dst port 9999 and dst host 127.0.0.1) or (src port 9999 and src host 127.0.0.1)"
10+
911
local n = net.init()
1012

1113
function decode(inip)
@@ -34,7 +36,7 @@ function decode(inip)
3436
if expectport ~= nil then
3537
exptrack.verbose("Q", "master", src, dst, sport, dport)
3638
exptrack.verbose("Q", "expect", src, dst, "*", expectport)
37-
exptrack.expect(src, dst, sport, dport, expectport, 10)
39+
exptrack.expect(src, dst, sport, dport, expectport, 10, "permanent")
3840
end
3941
else
4042
exptrack.debug("Q", "flags", string.format("%#x", tcp.flags), "(non-data)")

0 commit comments

Comments
 (0)