diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-21 22:03:26 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-11-22 08:38:50 +0000 |
commit | bcabd8df0f3d527d81ed7bc2ee4717ae225733bd (patch) | |
tree | c845dfe3c3ad2186910971f3fe27bda627ba10be /epan/dissectors/packet-h245.c | |
parent | f9f88ff226835367972a1ceaf97b3c6d8844e330 (diff) |
register_dissector -> new_register_dissector for ASN.1 dissectors.
Change-Id: I0476519c02ffdd426b4fdfe8a206d61b728c327a
Reviewed-on: https://code.wireshark.org/review/12026
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-h245.c')
-rw-r--r-- | epan/dissectors/packet-h245.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/epan/dissectors/packet-h245.c b/epan/dissectors/packet-h245.c index 9ac7913db1..cde430d526 100644 --- a/epan/dissectors/packet-h245.c +++ b/epan/dissectors/packet-h245.c @@ -14531,19 +14531,20 @@ static int dissect_OpenLogicalChannel_PDU(tvbuff_t *tvb _U_, packet_info *pinfo /*--- End of included file: packet-h245-fn.c ---*/ #line 421 "../../asn1/h245/packet-h245-template.c" -static void -dissect_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) +static int +dissect_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { /* * MultimediaSystemControlMessage_handle is the handle for * dissect_h245_h245, so we don't want to do any h245_pi or tap stuff here. */ dissect_tpkt_encap(tvb, pinfo, parent_tree, h245_reassembly, MultimediaSystemControlMessage_handle); + return tvb_captured_length(tvb); } -static void -dissect_h245_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) +static int +dissect_h245_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_item *it; proto_tree *tr; @@ -14572,6 +14573,7 @@ dissect_h245_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) offset = (offset+0x07) & 0xfffffff8; CLEANUP_CALL_AND_POP; } + return tvb_captured_length(tvb); } void @@ -20226,7 +20228,7 @@ void proto_register_h245(void) { NULL, HFILL }}, /*--- End of included file: packet-h245-hfarr.c ---*/ -#line 505 "../../asn1/h245/packet-h245-template.c" +#line 507 "../../asn1/h245/packet-h245-template.c" }; /* List of subtrees */ @@ -20729,7 +20731,7 @@ void proto_register_h245(void) { &ett_h245_MobileMultilinkReconfigurationIndication, /*--- End of included file: packet-h245-ettarr.c ---*/ -#line 512 "../../asn1/h245/packet-h245-template.c" +#line 514 "../../asn1/h245/packet-h245-template.c" }; module_t *h245_module; @@ -20757,8 +20759,8 @@ void proto_register_h245(void) { "Show h245 info in reversed order", "Whether the dissector should print items of h245 Info column in reversed order", &info_col_fmt_prepend); - register_dissector("h245dg", dissect_h245_h245, proto_h245); - register_dissector("h245", dissect_h245, proto_h245); + new_register_dissector("h245dg", dissect_h245_h245, proto_h245); + new_register_dissector("h245", dissect_h245, proto_h245); nsp_object_dissector_table = register_dissector_table("h245.nsp.object", "H.245 NonStandardParameter (object)", FT_STRING, BASE_NONE, DISSECTOR_TABLE_ALLOW_DUPLICATE); nsp_h221_dissector_table = register_dissector_table("h245.nsp.h221", "H.245 NonStandardParameter (h221)", FT_UINT32, BASE_HEX, DISSECTOR_TABLE_ALLOW_DUPLICATE); |