diff options
Diffstat (limited to 'epan/dissectors/packet-wsmp.c')
-rw-r--r-- | epan/dissectors/packet-wsmp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-wsmp.c b/epan/dissectors/packet-wsmp.c index 53e1231459..f159bee39a 100644 --- a/epan/dissectors/packet-wsmp.c +++ b/epan/dissectors/packet-wsmp.c @@ -85,8 +85,8 @@ static int wme_getpsidlen (guint8 *psid) static gint ett_wsmp = -1; static gint ett_wsmdata = -1; -static void -dissect_wsmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_wsmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { /* Set up structures needed to add the protocol subtree and manage it */ proto_item *ti; @@ -196,6 +196,7 @@ dissect_wsmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { call_dissector(data_handle, wsmdata_tvb, pinfo, wsmdata_tree); } + return tvb_captured_length(tvb); } void @@ -255,7 +256,7 @@ proto_reg_handoff_wsmp(void) { dissector_handle_t wsmp_handle; - wsmp_handle = create_dissector_handle(dissect_wsmp, proto_wsmp); + wsmp_handle = new_create_dissector_handle(dissect_wsmp, proto_wsmp); dissector_add_uint("ethertype", ETHERTYPE_WSMP, wsmp_handle); data_handle = find_dissector("data"); return; |