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-tns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-tns.c') diff --git a/epan/dissectors/packet-tns.c b/epan/dissectors/packet-tns.c index 0a96835d42..530b7f1b04 100644 --- a/epan/dissectors/packet-tns.c +++ b/epan/dissectors/packet-tns.c @@ -190,7 +190,7 @@ static const value_string tns_control_cmds[] = { }; void proto_reg_handoff_tns(void); -static guint get_tns_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset); +static guint get_tns_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset, void *data); static int dissect_tns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_); static void dissect_tns_service_options(tvbuff_t *tvb, int offset, @@ -747,7 +747,7 @@ static void dissect_tns_control(tvbuff_t *tvb, int offset, packet_info *pinfo, } static guint -get_tns_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) +get_tns_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_) { /* * Get the length of the TNS message, including header -- cgit v1.2.3