Wireshark-commits: [Wireshark-commits] master 15c261e: ERF: Add support for new extension header an
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=15c261e94b888b0ae4e6122fb11fba2219c932fa
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
15c261e by Anthony Coddington (anthony.coddington@xxxxxxxxxx):
ERF: Add support for new extension header and Provenance tags
Add support for Entropy Extension header, currently with one field. Uses
a conversion function to convert representation to bits.
Add various entropy and tap mode Provenance (ERF_TYPE_META) tags.
The only complex tag is ext_hdrs_added/removed. This tag consist of up
to 4 big endian uint32 bitfields, with each bit representing an
extension header number. ehdr_type_vals and a new ehdr_type_vals_short
are used to generate the tags. Custom printing is used for the header
line to display unknown values as integer and support the special case
of <All>: all supplied bits 1 meaning all extension headers removed.
Storage for the up to 4 subtree header_field id entries is in the first
4 extra hf_values[] for now, the ett value is reused.
Increase erfmeta_tag_info_ext_t ERF_HF_VALUES_PER_TAG to 32. A better
solution is needed sooner rather than later but the structure is only
allocated for tags that need it.
Change-Id: I9e359f044131bce2afc189bebc21239eed429b21
Reviewed-on: https://code.wireshark.org/review/26111
Petri-Dish: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from 21b4d6e multipart: initialize value before function call (found by clang).
adds 15c261e ERF: Add support for new extension header and Provenance tags
Summary of changes:
epan/dissectors/packet-erf.c | 298 ++++++++++++++++++++++++++++++++++++++++++-
wiretap/erf.h | 27 ++++
2 files changed, 320 insertions(+), 5 deletions(-)