From ceb8d954d25211d5cb4766ece277c15aa53578d5 Mon Sep 17 00:00:00 2001 From: Hadriel Kaplan Date: Sun, 25 Jan 2015 14:30:13 -0500 Subject: Lua: Expose tcp_dissect_pdus() to Lua Provide a way for Lua-based dissectors to invoke tcp_dissect_pdus() to make TCP-based dissection easier. Bug: 9851 Change-Id: I91630ebf1f1fc1964118b6750cc34238e18a8ad3 Reviewed-on: https://code.wireshark.org/review/6778 Reviewed-by: Alexis La Goutte Reviewed-by: Hadriel Kaplan Tested-by: Hadriel Kaplan --- epan/dissectors/packet-scop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-scop.c') diff --git a/epan/dissectors/packet-scop.c b/epan/dissectors/packet-scop.c index e2db6be5ee..2aa35558a6 100644 --- a/epan/dissectors/packet-scop.c +++ b/epan/dissectors/packet-scop.c @@ -77,7 +77,7 @@ void proto_reg_handoff_scop(void); static void dissect_scop_zip (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); static void dissect_scop_bridge (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); -static guint get_scop_length(packet_info *pinfo _U_, tvbuff_t *tvb, int offset); +static guint get_scop_length(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data); /* Initialize protocol and registered fields */ static int proto_scop = -1; @@ -221,7 +221,7 @@ dissect_scop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ *--------------------------------------------------------------- */ static guint -get_scop_length(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) +get_scop_length(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_) { /* Byte 0: Protocol Type. * Byte 1: Protocol Version. -- cgit v1.2.3