Prime the epan_dissect_t with postdissector wanted fields if necessary.
authorGuy Harris <guy@alum.mit.edu>
Wed, 12 Apr 2017 20:52:07 +0000 (13:52 -0700)
committerGuy Harris <guy@alum.mit.edu>
Wed, 12 Apr 2017 23:33:37 +0000 (23:33 +0000)
commit847c25c5a7e7c5653870c4bd60625da1c64c86f1
tree386b51025493bda76c077334293d931eded5afdf
parent74f9b279e9888b0449b569a1c474351ccc991d5e
Prime the epan_dissect_t with postdissector wanted fields if necessary.

This makes sure that postdissectors that indicate that they need certain
fields in the first pass will get them.

While we're at it:

Fix the field-fetching code in TRANSUM not to assume it got any
instances of the field being fetched.

Rename process_packet_first_pass() in sharkd to process_packet(), as
it's the only routine in sharkd that processes packets.

Rename process_packet() in tshark and tfshark to
process_packet_single_pass(), as it's what's used if we're only doing
one-pass analysis.

Clean up comments and whitespace.

Change-Id: I3769af952c66f5ca4b68002ad6213858ab9cab9b
Reviewed-on: https://code.wireshark.org/review/21063
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/epan.c
epan/epan.h
epan/packet.c
epan/packet.h
file.c
plugins/transum/decoders.c
sharkd.c
tfshark.c
tshark.c