We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff69ef4 commit b183e22Copy full SHA for b183e22
scripts/example.lua
@@ -1,9 +1,5 @@
1
function process(packet)
2
if packet.size ~= 0 then -- skip the syn and ack
3
- local type = "REQ"
4
- if not packet.request then
5
- type = "RSP"
6
- end
7
local time_str = os.date('%Y-%m-%d %H:%M:%S', packet.tv_sec).."."..packet.tv_usec
8
print(string.format("%s %s:%d=>%s:%d %s %u %u %d %u %s",
9
time_str,
@@ -19,4 +15,4 @@ function process(packet)
19
15
packet.payload -- payload
20
16
))
21
17
end
22
-end
18
+end
0 commit comments