aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mausb.c
diff options
context:
space:
mode:
authorHadriel Kaplan <hadrielk@yahoo.com>2015-01-25 14:30:13 -0500
committerHadriel Kaplan <hadrielk@yahoo.com>2015-01-27 15:14:12 +0000
commitceb8d954d25211d5cb4766ece277c15aa53578d5 (patch)
tree859ad1b08e44c140728311e9ed60fd3444cd2054 /epan/dissectors/packet-mausb.c
parent9bbc33730622e117d9edfa3f393da883624510f1 (diff)
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 <alexis.lagoutte@gmail.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Tested-by: Hadriel Kaplan <hadrielk@yahoo.com>
Diffstat (limited to 'epan/dissectors/packet-mausb.c')
-rw-r--r--epan/dissectors/packet-mausb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mausb.c b/epan/dissectors/packet-mausb.c
index d0f72b9c82..1e9e6018a3 100644
--- a/epan/dissectors/packet-mausb.c
+++ b/epan/dissectors/packet-mausb.c
@@ -621,7 +621,8 @@ static guint8 mausb_ep_handle_bus_num(guint16 handle) {
}
/* returns the length field of the MAUSB packet */
-static guint mausb_get_pkt_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
+static guint mausb_get_pkt_len(packet_info *pinfo _U_, tvbuff_t *tvb,
+ int offset, void *data _U_)
{
return tvb_get_letohs(tvb, offset + 2);
}
@@ -1176,7 +1177,7 @@ dissect_mausb_pkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* create display subtree for the protocol */
ti = proto_tree_add_item(tree, proto_mausb, tvb, 0,
- mausb_get_pkt_len(pinfo, tvb, offset), ENC_NA);
+ mausb_get_pkt_len(pinfo, tvb, offset, NULL), ENC_NA);
mausb_tree = proto_item_add_subtree(ti, ett_mausb);