diff options
Diffstat (limited to 'wireshark/util.lua')
-rw-r--r-- | wireshark/util.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wireshark/util.lua b/wireshark/util.lua index 6051351..7c9a16d 100644 --- a/wireshark/util.lua +++ b/wireshark/util.lua @@ -1,3 +1,9 @@ +pc_global = { + pid_mid_map = {}, -- map packet id to pictochat message id (key = pid) + msg = {}, -- pictochat messages (key = mid) + mid = 0, -- current pictochat message id +} + function bits(idx, len) len = len or 1 return ((2^len)-1) * 2^idx |