Wireshark-commits: [Wireshark-commits] master 860747e: Adds some Lua helper functions: some commonl
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 25 Feb 2014 21:06:22 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=860747e1e78aefdaf31e77408ad590b9d759d1aa
Submitter: Alexis La Goutte (alexis.lagoutte@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

860747e by Hadriel Kaplan (hadrielk@xxxxxxxxx):

    Adds some Lua helper functions: some commonly used functions, and to help troubleshooting Lua scripts
    
    There are some common things people need to do, such as convert to/from hex or get
    the raw binary string in a ByteArray/Tvb/TvbRange. These have been added, as well
    as some tests for them in the testsuites. Also, functions have been added to allow
    a script to get all the available tap types and filter fields, since they are
    not exactly what one can see in the Wireshark gui.
    
    Change-Id: I92e5e4eae713bb90d79b0c024eaa4e55b99cc96b
    Reviewed-on: https://code.wireshark.org/review/249
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    

Actions performed:

    from  907a825   Fix file.c: Dereference of null pointer (clang analyzer)
    adds  860747e   Adds some Lua helper functions: some commonly used functions, and to help troubleshooting Lua scripts


Summary of changes:
 epan/packet.c               |    9 +++
 epan/packet.h               |    3 +
 epan/tap.c                  |   14 ++++
 epan/tap.h                  |    3 +
 epan/wslua/wslua.h          |    3 +
 epan/wslua/wslua_field.c    |   29 +++++++
 epan/wslua/wslua_listener.c |   30 +++++++
 epan/wslua/wslua_proto.c    |   30 +++++++
 epan/wslua/wslua_struct.c   |   64 ++++++++++++---
 epan/wslua/wslua_tvb.c      |  189 ++++++++++++++++++++++++++++++-------------
 epan/wslua/wslua_util.c     |  108 +++++++++++++++++++++++++
 test/lua/dissector.lua      |   19 +----
 test/lua/struct.lua         |   23 +++++-
 13 files changed, 439 insertions(+), 85 deletions(-)