Wireshark-commits: [Wireshark-commits] master 429082d: wslua: pinfo: make p2p_dir accessible to lua

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 22 Jul 2019 15:45:33 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=429082dd71a00e7eb67efb6c8c20d0b95c532da1
Submitter: "Martin Kaiser <wireshark@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

429082d by Martin Kaiser (wireshark@xxxxxxxxx):

    wslua: pinfo: make p2p_dir accessible to lua dissectors
    
    Some dissectors populate pinfo->p2p_dir with a packet's direction
    (incoming / outgoing). Make this info available to lua dissectors.
    
    Add a simple test for Pinfo's new p2p_dir attribute to the wslua
    test suite. It checks that p2p_dir is unknown for dhcp packets.
    (The dhcp dissector does not set p2p_dir).
    
    Change-Id: I8cc39a11cff840d10ef7fa94d30cbac8bf9b533f
    Reviewed-on: https://code.wireshark.org/review/33935
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Martin Kaiser <wireshark@xxxxxxxxx>
    

Actions performed:

    from  cc15201   helper function to get a payload dissector table's current handle
     add  429082d   wslua: pinfo: make p2p_dir accessible to lua dissectors


Summary of changes:
 epan/wslua/template-init.lua | 6 ++++++
 epan/wslua/wslua_pinfo.c     | 3 +++
 test/lua/pinfo.lua           | 2 ++
 3 files changed, 11 insertions(+)