Wireshark-bugs: [Wireshark-bugs] [Bug 6020] pinfo.cols.protocol not holding value
Date: Fri, 1 Jul 2011 15:26:40 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6020

--- Comment #2 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2011-07-01 15:26:37 PDT ---
I don't know much about Lua, but maybe this is because of the "if (tree)"
wrapper in packet-tcp.c (r37860)?  i.e.:

if (tree) {
    ...

Line 3667:    proto_tree_add_uint_format(tcp_tree, hf_tcp_srcport, tvb, offset,
...);

    ...
} 

What happens if you replace "if (tree)" with "if (1)"?  I don't suggest we do
that, but it might help narrow down if that's the reason or not.  If it is,
then your Lua script may need to take into account if there's a tree or not. 
OK, as I mentioned, I'm no Lua expert, so this might not be relevant at all. 
Just a thought.

-- 
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.