diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-24 18:03:04 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-25 19:21:28 +0000 |
commit | 73e58f025ef111810ae7c931a0262248106095f4 (patch) | |
tree | 881de0049e5e07b573675ef2ec400859e44943ba /asn1/m3ap | |
parent | 0cd1a8506425fa379c88df941e3039ce9a1164d4 (diff) |
create_dissector_handle -> new_create_dissector_handle for ASN.1 dissectors
Change-Id: I3d7a61a5ddd79b7bcbec5b9c515470848f413fd5
Reviewed-on: https://code.wireshark.org/review/12121
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'asn1/m3ap')
-rw-r--r-- | asn1/m3ap/packet-m3ap-template.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/asn1/m3ap/packet-m3ap-template.c b/asn1/m3ap/packet-m3ap-template.c index d17d4b1db4..a69d3179a7 100644 --- a/asn1/m3ap/packet-m3ap-template.c +++ b/asn1/m3ap/packet-m3ap-template.c @@ -116,8 +116,8 @@ static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, p } -static void -dissect_m3ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_m3ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_item *m3ap_item = NULL; proto_tree *m3ap_tree = NULL; @@ -132,6 +132,7 @@ dissect_m3ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) dissect_M3AP_PDU_PDU(tvb, pinfo, m3ap_tree, NULL); } + return tvb_captured_length(tvb); } /*--- proto_register_m3ap -------------------------------------------*/ void proto_register_m3ap(void) { @@ -182,7 +183,7 @@ proto_reg_handoff_m3ap(void) static guint SctpPort; if( !inited ) { - m3ap_handle = create_dissector_handle(dissect_m3ap, proto_m3ap); + m3ap_handle = new_create_dissector_handle(dissect_m3ap, proto_m3ap); dissector_add_uint("sctp.ppi", PROTO_3GPP_M3AP_PROTOCOL_ID, m3ap_handle); inited = TRUE; #include "packet-m3ap-dis-tab.c" |