aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2012-09-18 18:14:24 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2012-09-18 18:14:24 +0000
commite746d8091dff80990f08062574712ed0890e8441 (patch)
tree90eb0d988f075945048248876135d584a444904e /epan
parent623720dc92b00c3589a8a4bf1dfd6da4e604a985 (diff)
Don't register to udp/tcp port 0, but use dissector_add_handle() instead.
svn path=/trunk/; revision=44975
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-skype.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/dissectors/packet-skype.c b/epan/dissectors/packet-skype.c
index 9bd54ecc91..73e7d9e403 100644
--- a/epan/dissectors/packet-skype.c
+++ b/epan/dissectors/packet-skype.c
@@ -98,9 +98,6 @@ static int hf_skype_unknown_packet = -1;
#define PROTO_SHORT_NAME "SKYPE"
#define PROTO_LONG_NAME "SKYPE"
-#define PORT_SKYPE_UDP 0
-#define PORT_SKYPE_TCP 0
-
typedef enum {
SKYPE_TYPE_UNKNOWN_0 = 0,
SKYPE_TYPE_PAYLOAD = 2,
@@ -451,8 +448,8 @@ proto_reg_handoff_skype(void)
dissector_handle_t skype_handle;
skype_handle = new_create_dissector_handle(dissect_skype_static, proto_skype);
- dissector_add_uint("tcp.port", PORT_SKYPE_UDP, skype_handle);
- dissector_add_uint("udp.port", PORT_SKYPE_UDP, skype_handle);
+ dissector_add_handle("tcp.port", skype_handle);
+ dissector_add_handle("udp.port", skype_handle);
#if SKYPE_HEUR
heur_dissector_add("tcp", dissect_skype_heur, proto_skype);
heur_dissector_add("udp", dissect_skype_heur, proto_skype);