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-pcp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-pcp.c') diff --git a/epan/dissectors/packet-pcp.c b/epan/dissectors/packet-pcp.c index 888a11d93d..8f6654646c 100644 --- a/epan/dissectors/packet-pcp.c +++ b/epan/dissectors/packet-pcp.c @@ -414,7 +414,7 @@ static const value_string packettypenames_creds[]= { }; /* function prototypes */ -static guint get_pcp_message_len(packet_info *pinfo, tvbuff_t *tvb, int offset); +static guint get_pcp_message_len(packet_info *pinfo, tvbuff_t *tvb, int offset, void *data); static int dissect_pcp_message_creds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset); static int dissect_pcp_message_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset); static int dissect_pcp_message_start(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset); @@ -435,7 +435,8 @@ static int dissect_pcp_partial_pmid(tvbuff_t *tvb, packet_info *pinfo, proto_tre static int dissect_pcp_partial_when(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset); /* message length for dissect_tcp */ -static guint get_pcp_message_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) +static guint get_pcp_message_len(packet_info *pinfo _U_, tvbuff_t *tvb, + int offset, void *data _U_) { /* length is at the very start of the packet, after tcp header */ return (guint)tvb_get_ntohl(tvb, offset); -- cgit v1.2.3