Hadriel Kaplan
changed
bug 6020
What |
Removed |
Added |
Attachment #10047 Flags |
|
review_for_checkin?
|
Comment # 18
on bug 6020
from Hadriel Kaplan
Created attachment 10047 [details]
Patch to make Lua fields populated
This patch makes Lua field extractors usable in post-dissectors, by creating a
dfilter for the fields, and priming the proto_tree with it in
epan_dissect_run(). This is similar to the color/display/taps dfilter model,
except this Lua one is *always* primed, unless there's no proto_tree to begin
with (which there sometimes isn't).
The rationale for this is: unlike color/display/tap dfilters, which are only
used at certain times based on when C-code needs them, we don't know when a Lua
plugin needs a field to be populated. This patch still does not prime the
dfilter if there is no proto_tree, as that seems safer to avoid for now.
You are receiving this mail because:
- You are the assignee for the bug.
- You are watching all bug changes.