Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] master da1af6e: Add filterable expert info for Lua

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 26 Mar 2014 05:20:20 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=da1af6e549856c8e213dadc1ec37a41a50246e1d
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

da1af6e by Hadriel Kaplan (hadrielk@xxxxxxxxx):

    Add filterable expert info for Lua
    
    This adds the ability for a Lua script to register expert info fields,
    similar to C-code dissectors. This change also removes the need for
    the expert_add_info_format_internal() function. Existing Lua scripts
    do not have to change, because the existing expert info function
    uses the internal "_ws.lua" protocol instead of nothing; but using
    the new functionality provides more benefits since it correctly
    registers the expert info fields to the dissector's protocol.
    
    The test suite was amended to generate both old and new forms.
    
    Change-Id: Ib5ae74e927cfa81312baf7b04ff4104b0b4f936e
    Reviewed-on: https://code.wireshark.org/review/830
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  b981173   LTE RRC: fix dissection of SystemInfoListGERAN IE
    adds  da1af6e   Add filterable expert info for Lua


Summary of changes:
 epan/expert.c                 |   16 +---
 epan/expert.h                 |   18 +---
 epan/proto.h                  |   26 +++---
 epan/wslua/init_wslua.c       |  164 +++++++++++++++++++++++++++++++++++
 epan/wslua/make-init-lua.pl   |   53 ++++++++++--
 epan/wslua/template-init.lua  |    5 ++
 epan/wslua/wslua.h            |   13 +++
 epan/wslua/wslua_proto.c      |  190 ++++++++++++++++++++++++++++++++++++++++-
 epan/wslua/wslua_tree.c       |  103 ++++++++++++++++++++--
 test/captures/dns_port.pcap   |  Bin 1318 -> 1318 bytes
 test/lua/dissector.lua        |   36 +++++++-
 test/lua/proto.lua            |   30 ++++++-
 test/lua/verify_dissector.lua |   80 +++++++++++++++--
 13 files changed, 671 insertions(+), 63 deletions(-)