| 1 | initial version |
You could store the values in a global table indexed by packet number.
https://gitlab.com/wireshark/wireshark/-/wikis/Lua/Examples/filtcols
-- variables to persist across all packets
local pkt_data = {} -- indexed per packet
pkt_data.protocol = {}
pkt_data.info = {}
if cols_protocol ~= "(protocol)" then
pkt_data.protocol[pinfo.number] = cols_protocol
end
| 2 | No.2 Revision |
You could store the values in a global table indexed by packet number.
https://gitlab.com/wireshark/wireshark/-/wikis/Lua/Examples/filtcolsfiltcols - A post-dissector to allow filtering on Protocol and Info column
-- variables to persist across all packets
local pkt_data = {} -- indexed per packet
pkt_data.protocol = {}
pkt_data.info = {}
if cols_protocol ~= "(protocol)" then
pkt_data.protocol[pinfo.number] = cols_protocol
end