summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-esio.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-10-05 16:33:54 -0400
committerMichael Mann <mmann78@netscape.net>2016-10-13 02:51:18 +0000
commit2eb7b05b8c9c6408268f0d1e81f0a18a02610f1c (patch)
treebd0a909e3d506ea2e61c446aa8a809b6f728af3b /epan/dissectors/packet-esio.c
parent4d8581d7e15fe4a80a53496b83a853271fc674b6 (diff)
downloadwireshark-2eb7b05b8c9c6408268f0d1e81f0a18a02610f1c.tar.gz
Convert most UDP dissectors to use "auto" preferences.
Similar to the "tcp.port" changes in I99604f95d426ad345f4b494598d94178b886eb67, convert dissectors that use "udp.port". More cleanup done on dissectors that use both TCP and UDP dissector tables, so that less preference callbacks exist. Change-Id: If07be9b9e850c244336a7069599cd554ce312dd3 Reviewed-on: https://code.wireshark.org/review/18120 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-esio.c')
-rw-r--r--epan/dissectors/packet-esio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-esio.c b/epan/dissectors/packet-esio.c
index 8726a42fd1..0b5a2fde77 100644
--- a/epan/dissectors/packet-esio.c
+++ b/epan/dissectors/packet-esio.c
@@ -33,6 +33,8 @@
void proto_register_esio(void);
void proto_reg_handoff_esio(void);
+#define ESIO_UDP_PORT 6060 /* Not IANA registered */
+
/* Initialize the protocol and registered fields */
static int proto_esio = -1;
static int hf_esio_type = -1;
@@ -419,7 +421,7 @@ proto_reg_handoff_esio(void)
dissector_handle_t esio_handle;
esio_handle = create_dissector_handle(dissect_esio, proto_esio);
- dissector_add_uint("udp.port", 6060, esio_handle);
+ dissector_add_uint_with_preference("udp.port", ESIO_UDP_PORT, esio_handle);
}
/*