diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-20 09:43:28 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-20 16:43:56 +0000 |
commit | ce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9 (patch) | |
tree | 8a4ddc4ec1607716254ada75c607094da614f131 /epan/dissectors/packet-rtp.c | |
parent | 4df6b5178496422ddfc3b9256af763b847d1a2c7 (diff) |
Rename dissector_add_handle() to dissector_add_for_decode_as().
Hopefully that name makes it clear what the routiner's purpose is, and
will encourage people to use it rather than using dissector_add_uint()
with a bogus integer value.
Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8
Reviewed-on: https://code.wireshark.org/review/2483
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-rtp.c')
-rw-r--r-- | epan/dissectors/packet-rtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rtp.c b/epan/dissectors/packet-rtp.c index a05a7d57ed..72a748ed80 100644 --- a/epan/dissectors/packet-rtp.c +++ b/epan/dissectors/packet-rtp.c @@ -2752,7 +2752,7 @@ proto_reg_handoff_pkt_ccc(void) if (!initialized) { pkt_ccc_handle = find_dissector("pkt_ccc"); - dissector_add_handle("udp.port", pkt_ccc_handle); /* for 'decode-as' */ + dissector_add_for_decode_as("udp.port", pkt_ccc_handle); initialized = TRUE; } else { if (saved_pkt_ccc_udp_port != 0) { @@ -3679,7 +3679,7 @@ proto_reg_handoff_rtp(void) rtp_handle = find_dissector("rtp"); rtp_rfc2198_handle = find_dissector("rtp.rfc2198"); - dissector_add_handle("udp.port", rtp_handle); /* for 'decode-as' */ + dissector_add_for_decode_as("udp.port", rtp_handle); dissector_add_string("rtp_dyn_payload_type", "red", rtp_rfc2198_handle); heur_dissector_add( "udp", dissect_rtp_heur_udp, proto_rtp); heur_dissector_add("stun", dissect_rtp_heur_stun, proto_rtp); @@ -3709,7 +3709,7 @@ proto_reg_handoff_rtp(void) dissector_add_string("rtp_dyn_payload_type", "v150fw", v150fw_handle); - dissector_add_handle("btl2cap.cid", rtp_handle); + dissector_add_for_decode_as("btl2cap.cid", rtp_handle); rtp_prefs_initialized = TRUE; } else { |