Wireshark-bugs: [Wireshark-bugs] [Bug 6020] Lua pinfo.cols.protocol not holding value in postdis
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6020
--- Comment #7 from Brian Douglass <brian.douglass@xxxxxxx> 2011-07-05 10:44:57 PDT ---
(From update of attachment 6608)
Recently downgraded from V1.6 to V1.4.6 as part of Pilot 3.0 eval. This
version holds the Trivial value in the Protocol column if lines 31 and 32 are
uncommented, with line 32 overwriting whatever is done in line 31. Line 34
always evaluates true, the line 35 print() shows in the Console, the
assignments in 43 and 44 are ignored. If you copy lines 31 and 32 down to
after the IF statement, and insert at line 54 and 55, the new line 55 overrides
all previous values. So the problem seems localized inside the IF statement.
However, in my own dissector, if I put my assignment at the beginning of
dissector it works. My first line of real work is an assignment getting the
xml.cdata into a local variable:
local l_xml_cdata = f_xml_cdata()
If I put my protocol column assignment after this, it works.
Next is an IF to return if l_xml_cdata is nil
if l_xml_cdata==nil then
return
end
pinfo.columns.protocol:set("G2S")
and this fails, even though in the trivial example this was successful.
Curious.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.