summaryrefslogtreecommitdiff
path: root/asn1/hnbap
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2014-10-06 15:31:47 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2014-10-13 11:24:07 +0000
commit4e1b5ea866dd332294246c4800efe77431010ad8 (patch)
tree8cda568a450b29fd7bbfcbbf03d840ab9f123190 /asn1/hnbap
parent94d35481b773e785c3aec31f81dea4300fdb5669 (diff)
downloadwireshark-4e1b5ea866dd332294246c4800efe77431010ad8.tar.gz
ASN1: Register PDU-dissectors as NEW
Change-Id: I1a317b19d8076588c9305dae6287bb80cc14da64 Reviewed-on: https://code.wireshark.org/review/4494 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'asn1/hnbap')
-rw-r--r--asn1/hnbap/hnbap.cnf2
-rw-r--r--asn1/hnbap/packet-hnbap-template.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/asn1/hnbap/hnbap.cnf b/asn1/hnbap/hnbap.cnf
index aea26a198b..bce8da84db 100644
--- a/asn1/hnbap/hnbap.cnf
+++ b/asn1/hnbap/hnbap.cnf
@@ -7,7 +7,7 @@ PER
ALIGNED
#.END
-#.PDU
+#.PDU_NEW
HNBAP-PDU
##.MAKE_DEFINES
diff --git a/asn1/hnbap/packet-hnbap-template.c b/asn1/hnbap/packet-hnbap-template.c
index ef90ecceb1..3b8b9b8d70 100644
--- a/asn1/hnbap/packet-hnbap-template.c
+++ b/asn1/hnbap/packet-hnbap-template.c
@@ -125,8 +125,8 @@ static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, p
return (dissector_try_uint_new(hnbap_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree, FALSE, NULL)) ? tvb_captured_length(tvb) : 0;
}
-static void
-dissect_hnbap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_hnbap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
{
proto_item *hnbap_item = NULL;
proto_tree *hnbap_tree = NULL;
@@ -138,7 +138,7 @@ dissect_hnbap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hnbap_item = proto_tree_add_item(tree, proto_hnbap, tvb, 0, -1, ENC_NA);
hnbap_tree = proto_item_add_subtree(hnbap_item, ett_hnbap);
- dissect_HNBAP_PDU_PDU(tvb, pinfo, hnbap_tree);
+ return dissect_HNBAP_PDU_PDU(tvb, pinfo, hnbap_tree, data);
}
/*--- proto_register_hnbap -------------------------------------------*/
@@ -166,7 +166,7 @@ module_t *hnbap_module;
proto_register_subtree_array(ett, array_length(ett));
/* Register dissector */
- register_dissector("hnbap", dissect_hnbap, proto_hnbap);
+ new_register_dissector("hnbap", dissect_hnbap, proto_hnbap);
/* Register dissector tables */
hnbap_ies_dissector_table = register_dissector_table("hnbap.ies", "HNBAP-PROTOCOL-IES", FT_UINT32, BASE_DEC);