aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-10-07 13:50:11 -0400
committerAnders Broman <a.broman58@gmail.com>2015-10-08 06:15:51 +0000
commitec82648b0989d409adcc404df69b691a260f16e9 (patch)
treee38922d9fe1f1b99f8eecb34c0a45238ba753324 /epan/dissectors/packet-ptp.c
parent4a20f576da686237bcb66edeb1e195364ddd2a49 (diff)
Replace or rename "duplicate" UDP protocols shown in Decode As
Change-Id: I8cfd1c223c70c7e03728af8b2f7cbf9354d7ad86 Ping-Bug: 3949 Reviewed-on: https://code.wireshark.org/review/10865 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ptp.c')
-rw-r--r--epan/dissectors/packet-ptp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c
index d688dc017f..e9ced18d7a 100644
--- a/epan/dissectors/packet-ptp.c
+++ b/epan/dissectors/packet-ptp.c
@@ -5980,16 +5980,14 @@ proto_register_ptp(void)
void
proto_reg_handoff_ptp(void)
{
- dissector_handle_t event_port_ptp_handle;
- dissector_handle_t general_port_ptp_handle;
+ dissector_handle_t ptp_handle;
dissector_handle_t ethertype_ptp_handle;
- event_port_ptp_handle = create_dissector_handle(dissect_ptp, proto_ptp);
- general_port_ptp_handle = create_dissector_handle(dissect_ptp, proto_ptp);
+ ptp_handle = create_dissector_handle(dissect_ptp, proto_ptp);
ethertype_ptp_handle = create_dissector_handle(dissect_ptp_oE, proto_ptp);
- dissector_add_uint("udp.port", EVENT_PORT_PTP, event_port_ptp_handle);
- dissector_add_uint("udp.port", GENERAL_PORT_PTP, general_port_ptp_handle);
+ dissector_add_uint("udp.port", EVENT_PORT_PTP, ptp_handle);
+ dissector_add_uint("udp.port", GENERAL_PORT_PTP, ptp_handle);
dissector_add_uint("ethertype", ETHERTYPE_PTP, ethertype_ptp_handle);
}