mirror of
https://github.com/bol-van/zapret2.git
synced 2026-10-29 06:02:05 +00:00
zapret-lib: include func instance in desync_timer_name
This commit is contained in:
1 parent
a8399a59fe
commit
d55fe738eb
2 files changed
+4
-3
No files matched your search
@@ -95,7 +95,8 @@ function send(ctx, desync)
|
||||
apply_fooling(desync, dis)
|
||||
apply_ip_id(desync, dis, nil, "none")
|
||||
if desync.arg.delay then
|
||||
local tname = "send_"..desync_timer_name(desync)
|
||||
local tname = desync_timer_name(desync)
|
||||
print("tname "..tname)
|
||||
timer_set(tname, "send_timer_delayed", tonumber(desync.arg.delay), true, {dis = dis, opts = desync_opts(desync)})
|
||||
else
|
||||
-- it uses rawsend, reconstruct and ipfrag options
|
||||
|
||||
+2
-2
@@ -550,7 +550,7 @@ function blob(desync, name, def)
|
||||
-- use global var if no field in dissect table
|
||||
blob = _G[name]
|
||||
if not blob then
|
||||
error("blob '"..name.."' unavailable")
|
||||
error("blob '"..name.."' unavailable")
|
||||
end
|
||||
end
|
||||
blob = tostring(blob)
|
||||
@@ -808,7 +808,7 @@ function dis_timer_name(dis)
|
||||
return table.concat({ntop(dis_ipsrc(dis)),"->",ntop(dis_ipdst(dis)),"_",dis_l4_name(dis),"_",dis_l4_ports(dis)})
|
||||
end
|
||||
function desync_timer_name(desync)
|
||||
local name = dis_timer_name(desync.dis)
|
||||
local name = desync.func_instance.."_"..dis_timer_name(desync.dis)
|
||||
if desync.track then
|
||||
name = name.."_n"..desync.track.pos.direct.pcounter
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user