summaryrefslogtreecommitdiff
path: root/plugins/ethercat/packet-ethercat-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ethercat/packet-ethercat-frame.c')
-rw-r--r--plugins/ethercat/packet-ethercat-frame.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/ethercat/packet-ethercat-frame.c b/plugins/ethercat/packet-ethercat-frame.c
index e9c7c92c59..53b60b7112 100644
--- a/plugins/ethercat/packet-ethercat-frame.c
+++ b/plugins/ethercat/packet-ethercat-frame.c
@@ -129,8 +129,7 @@ void proto_register_ethercat_frame(void)
&ett_ethercat_frame
};
- proto_ethercat_frame = proto_register_protocol("EtherCAT frame header",
- "ETHERCAT","ecatf");
+ proto_ethercat_frame = proto_register_protocol("EtherCAT frame header", "ETHERCAT", "ecatf");
proto_register_field_array(proto_ethercat_frame,hf,array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -148,7 +147,7 @@ void proto_reg_handoff_ethercat_frame(void)
ethercat_frame_handle = find_dissector("ecatf");
dissector_add_uint("ethertype", ETHERTYPE_ECATF, ethercat_frame_handle);
- dissector_add_uint("udp.port", ETHERTYPE_ECATF, ethercat_frame_handle);
+ dissector_add_uint_with_preference("udp.port", ETHERTYPE_ECATF, ethercat_frame_handle);
dissector_add_uint_with_preference("tcp.port", ETHERTYPE_ECATF, ethercat_frame_handle);
}