From ec82648b0989d409adcc404df69b691a260f16e9 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 7 Oct 2015 13:50:11 -0400 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall Reviewed-by: Anders Broman --- epan/dissectors/packet-ptp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'epan/dissectors/packet-ptp.c') 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); } -- cgit v1.2.3