Wireshark-bugs: [Wireshark-bugs] [Bug 6357] Lua scripting: all_field_infos() broken within tap/l
Hadriel Kaplan
changed
bug 6357
What |
Removed |
Added |
Attachment #10035 Flags |
|
review_for_checkin?
|
Comment # 2
on bug 6357
from Hadriel Kaplan
Created attachment 10035 [details]
Adds a flag to Listener.new() and register_postdissector() to make C-side
dissectors populate all fields.
As discussed on the ask wireshark site here:
http://ask.wireshark.org/questions/4678/lua-listener-dynamic-fields
one really should expect that all_field_infos() provides all field infos.
However, since this is a performance issue, I've attached a patch which fixes
this but only if the call to Listener.new() or register_postdissector()
includes a boolean true argument to make the C-side dissectors populate all the
field infos. When this flag is passed in, all_field_infos() provides all the
field infos; when it's not set, it defaults to false and all_field_infos() only
returns the field infos that the C-side dissectors happened to populate each
time, as is done today.
You are receiving this mail because:
- You are watching all bug changes.