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 /asn1 | |
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 'asn1')
-rw-r--r-- | asn1/h245/packet-h245-template.c | 4 | ||||
-rw-r--r-- | asn1/h283/packet-h283-template.c | 2 | ||||
-rw-r--r-- | asn1/lcsap/packet-lcsap-template.c | 2 | ||||
-rw-r--r-- | asn1/lte-rrc/packet-lte-rrc-template.c | 2 | ||||
-rw-r--r-- | asn1/nbap/packet-nbap-template.c | 4 | ||||
-rw-r--r-- | asn1/s1ap/packet-s1ap-template.c | 2 | ||||
-rw-r--r-- | asn1/x2ap/packet-x2ap-template.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/asn1/h245/packet-h245-template.c b/asn1/h245/packet-h245-template.c index 8b05e30c3f..451e85f8f9 100644 --- a/asn1/h245/packet-h245-template.c +++ b/asn1/h245/packet-h245-template.c @@ -581,9 +581,9 @@ void proto_reg_handoff_h245(void) { h245_handle = find_dissector("h245"); - dissector_add_handle("tcp.port", h245_handle); + dissector_add_for_decode_as("tcp.port", h245_handle); MultimediaSystemControlMessage_handle = find_dissector("h245dg"); - dissector_add_handle("udp.port", MultimediaSystemControlMessage_handle); + dissector_add_for_decode_as("udp.port", MultimediaSystemControlMessage_handle); } static void init_h245_packet_info(h245_packet_info *pi) diff --git a/asn1/h283/packet-h283-template.c b/asn1/h283/packet-h283-template.c index ac555b11e7..da8c39bfe3 100644 --- a/asn1/h283/packet-h283-template.c +++ b/asn1/h283/packet-h283-template.c @@ -101,7 +101,7 @@ void proto_reg_handoff_h283(void) dissector_handle_t h283_udp_handle; h283_udp_handle = find_dissector(PFNAME); - dissector_add_handle("udp.port", h283_udp_handle); + dissector_add_for_decode_as("udp.port", h283_udp_handle); rdc_pdu_handle = find_dissector("rdc"); rdc_device_list_handle = find_dissector("rdc.device_list"); diff --git a/asn1/lcsap/packet-lcsap-template.c b/asn1/lcsap/packet-lcsap-template.c index 5c2da8e623..f1b9b332fd 100644 --- a/asn1/lcsap/packet-lcsap-template.c +++ b/asn1/lcsap/packet-lcsap-template.c @@ -250,7 +250,7 @@ proto_reg_handoff_lcsap(void) lcsap_handle = find_dissector("lcsap"); lpp_handle = find_dissector("lpp"); lppa_handle = find_dissector("lppa"); - dissector_add_handle("sctp.port", lcsap_handle); /* for "decode-as" */ + dissector_add_for_decode_as("sctp.port", lcsap_handle); /* for "decode-as" */ dissector_add_uint("sctp.ppi", LCS_AP_PAYLOAD_PROTOCOL_ID, lcsap_handle); Initialized=TRUE; #include "packet-lcsap-dis-tab.c" diff --git a/asn1/lte-rrc/packet-lte-rrc-template.c b/asn1/lte-rrc/packet-lte-rrc-template.c index 7ebae26683..0936705381 100644 --- a/asn1/lte-rrc/packet-lte-rrc-template.c +++ b/asn1/lte-rrc/packet-lte-rrc-template.c @@ -2903,7 +2903,7 @@ proto_reg_handoff_lte_rrc(void) static dissector_handle_t lte_rrc_dl_ccch_handle; lte_rrc_dl_ccch_handle = find_dissector("lte_rrc.dl_ccch"); - dissector_add_handle("udp.port", lte_rrc_dl_ccch_handle); + dissector_add_for_decode_as("udp.port", lte_rrc_dl_ccch_handle); nas_eps_handle = find_dissector("nas-eps"); rrc_irat_ho_to_utran_cmd_handle = find_dissector("rrc.irat.ho_to_utran_cmd"); rrc_sys_info_cont_handle = find_dissector("rrc.sysinfo.cont"); diff --git a/asn1/nbap/packet-nbap-template.c b/asn1/nbap/packet-nbap-template.c index 68cb459a95..2d0ca1408b 100644 --- a/asn1/nbap/packet-nbap-template.c +++ b/asn1/nbap/packet-nbap-template.c @@ -550,9 +550,9 @@ proto_reg_handoff_nbap(void) fp_handle = find_dissector("fp"); dissector_add_uint("sctp.ppi", NBAP_PAYLOAD_PROTOCOL_ID, nbap_handle); #ifdef EXTRA_PPI - dissector_add_uint("sctp.ppi", 17, nbap_handle); + dissector_add_uint("sctp.ppi", 17, nbap_handle); #endif - dissector_add_handle("sctp.port", nbap_handle); /* for "decode-as" */ + dissector_add_for_decode_as("sctp.port", nbap_handle); #include "packet-nbap-dis-tab.c" } diff --git a/asn1/s1ap/packet-s1ap-template.c b/asn1/s1ap/packet-s1ap-template.c index 3ddb488ea1..f26dd967db 100644 --- a/asn1/s1ap/packet-s1ap-template.c +++ b/asn1/s1ap/packet-s1ap-template.c @@ -196,7 +196,7 @@ proto_reg_handoff_s1ap(void) nas_eps_handle = find_dissector("nas-eps"); lppa_handle = find_dissector("lppa"); bssgp_handle = find_dissector("bssgp"); - dissector_add_handle("sctp.port", s1ap_handle); /* for "decode-as" */ + dissector_add_for_decode_as("sctp.port", s1ap_handle); dissector_add_uint("sctp.ppi", S1AP_PAYLOAD_PROTOCOL_ID, s1ap_handle); Initialized=TRUE; #include "packet-s1ap-dis-tab.c" diff --git a/asn1/x2ap/packet-x2ap-template.c b/asn1/x2ap/packet-x2ap-template.c index 397bc0533d..d8bae5d36e 100644 --- a/asn1/x2ap/packet-x2ap-template.c +++ b/asn1/x2ap/packet-x2ap-template.c @@ -193,7 +193,7 @@ proto_reg_handoff_x2ap(void) x2ap_handle = find_dissector("x2ap"); if (!Initialized) { - dissector_add_handle("sctp.port", x2ap_handle); /* for "decode-as" */ + dissector_add_for_decode_as("sctp.port", x2ap_handle); dissector_add_uint("sctp.ppi", X2AP_PAYLOAD_PROTOCOL_ID, x2ap_handle); Initialized=TRUE; #include "packet-x2ap-dis-tab.c" |