Wireshark-commits: [Wireshark-commits] master 04c39bb: Add Lua heuristic dissector support
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=04c39bb0972bac1f95eb9394b5ca1086f19c0d93
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
04c39bb by Hadriel Kaplan (hadrielk@xxxxxxxxx):
Add Lua heuristic dissector support
This adds the ability for Lua scripts to register heuristic dissectors
for any protocol that has registered a heuristic dissector list, such
as UDP, TCP, and ~50 others. The Lua function can also establish a
conversation tied to its Proto dissector, to avoid having to check the
heuristics for the same flow. The example dissector in the testsuite
has also been enhanced to include a heuristic dissector, to verify
the functionality and provide an example implementation.
Change-Id: Ie232602779f43d3418fe8db09c61d5fc0b59597a
Reviewed-on: https://code.wireshark.org/review/576
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from a59ac1b Bug 9704: GSM_MAP SendRoutingInfoForSM incomplete
adds 04c39bb Add Lua heuristic dissector support
Summary of changes:
doc/README.heuristic | 10 +--
epan/packet.c | 24 ++++++--
epan/packet.h | 6 +-
epan/packet_info.h | 1 +
epan/wslua/init_wslua.c | 96 ++++++++++++++++++++++++++++-
epan/wslua/wslua.h | 4 ++
epan/wslua/wslua_internals.c | 40 +++++++++++-
epan/wslua/wslua_pinfo.c | 19 ++++++
epan/wslua/wslua_proto.c | 134 +++++++++++++++++++++++++++++++++++++++++
epan/wslua/wslua_tvb.c | 6 +-
test/captures/dns_port.pcap | Bin 671 -> 1318 bytes
test/lua/dissector.lua | 117 +++++++++++++++++++++++++++++++++--
test/lua/proto.lua | 77 ++++++++++++++++++++++-
test/lua/verify_dissector.lua | 18 +++++-
test/suite-wslua.sh | 20 +++---
15 files changed, 540 insertions(+), 32 deletions(-)