aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sbc-ap.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-24 18:03:04 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-25 19:21:28 +0000
commit73e58f025ef111810ae7c931a0262248106095f4 (patch)
tree881de0049e5e07b573675ef2ec400859e44943ba /epan/dissectors/packet-sbc-ap.c
parent0cd1a8506425fa379c88df941e3039ce9a1164d4 (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 'epan/dissectors/packet-sbc-ap.c')
-rw-r--r--epan/dissectors/packet-sbc-ap.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-sbc-ap.c b/epan/dissectors/packet-sbc-ap.c
index bed8385fbd..12f4989f49 100644
--- a/epan/dissectors/packet-sbc-ap.c
+++ b/epan/dissectors/packet-sbc-ap.c
@@ -1164,8 +1164,8 @@ static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, p
}
-static void
-dissect_sbc_ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_sbc_ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_item *sbc_ap_item = NULL;
proto_tree *sbc_ap_tree = NULL;
@@ -1180,6 +1180,7 @@ dissect_sbc_ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissect_SBC_AP_PDU_PDU(tvb, pinfo, sbc_ap_tree, NULL);
}
+ return tvb_captured_length(tvb);
}
/*--- proto_register_sbc_ap -------------------------------------------*/
void proto_register_sbc_ap(void) {
@@ -1412,7 +1413,7 @@ void proto_register_sbc_ap(void) {
"UnsuccessfulOutcome_value", HFILL }},
/*--- End of included file: packet-sbc-ap-hfarr.c ---*/
-#line 150 "../../asn1/sbc-ap/packet-sbc-ap-template.c"
+#line 151 "../../asn1/sbc-ap/packet-sbc-ap-template.c"
};
/* List of subtrees */
@@ -1446,7 +1447,7 @@ void proto_register_sbc_ap(void) {
&ett_sbc_ap_UnsuccessfulOutcome,
/*--- End of included file: packet-sbc-ap-ettarr.c ---*/
-#line 156 "../../asn1/sbc-ap/packet-sbc-ap-template.c"
+#line 157 "../../asn1/sbc-ap/packet-sbc-ap-template.c"
};
@@ -1476,7 +1477,7 @@ proto_reg_handoff_sbc_ap(void)
static guint SctpPort;
if( !inited ) {
- sbc_ap_handle = create_dissector_handle(dissect_sbc_ap, proto_sbc_ap);
+ sbc_ap_handle = new_create_dissector_handle(dissect_sbc_ap, proto_sbc_ap);
dissector_add_uint("sctp.ppi", SBC_AP_PAYLOAD_PROTOCOL_ID, sbc_ap_handle);
inited = TRUE;
@@ -1504,7 +1505,7 @@ proto_reg_handoff_sbc_ap(void)
/*--- End of included file: packet-sbc-ap-dis-tab.c ---*/
-#line 189 "../../asn1/sbc-ap/packet-sbc-ap-template.c"
+#line 190 "../../asn1/sbc-ap/packet-sbc-ap-template.c"
} else {
if (SctpPort != 0) {
dissector_delete_uint("sctp.port", SctpPort, sbc_ap_handle);