aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-turnchannel.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-10-09 01:20:02 +0000
committerBill Meier <wmeier@newsguy.com>2008-10-09 01:20:02 +0000
commit76c5103967b0f190bec7dcd4da0a68753f621700 (patch)
treeb446947bc8936b6d8998dbad06ab76bde003ba03 /epan/dissectors/packet-turnchannel.c
parentb854d9e20f6fa93ee879572792f108c2a1aab453 (diff)
Minor cleanup in proto_reg_handoff; remove unused #include and typedefs
svn path=/trunk/; revision=26390
Diffstat (limited to 'epan/dissectors/packet-turnchannel.c')
-rw-r--r--epan/dissectors/packet-turnchannel.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/epan/dissectors/packet-turnchannel.c b/epan/dissectors/packet-turnchannel.c
index 79da299e14..c1d0f93f0e 100644
--- a/epan/dissectors/packet-turnchannel.c
+++ b/epan/dissectors/packet-turnchannel.c
@@ -42,7 +42,6 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/conversation.h>
#include <packet-tcp.h>
/* heuristic subdissectors */
@@ -57,21 +56,9 @@ static int proto_turnchannel = -1;
static int hf_turnchannel_id = -1;
static int hf_turnchannel_len = -1;
-/* Structure containing conversation specific information */
-typedef struct _turn2_conv_info_t {
- emem_tree_t *pdus;
-} turn_conv_info_t;
-
-/* Structure containing transaction specific information */
-typedef struct _turnchannel_t {
- guint16 channelid;
-} turnchannel_t;
-
-
#define TURNCHANNEL_HDR_LEN ((guint)4)
-
/* Initialize the subtree pointers */
static gint ett_turnchannel = -1;
@@ -235,10 +222,10 @@ proto_reg_handoff_turnchannel(void)
dissector_handle_t turnchannel_udp_handle;
turnchannel_tcp_handle = create_dissector_handle(dissect_turnchannel_tcp, proto_turnchannel);
- turnchannel_udp_handle = new_create_dissector_handle(dissect_turnchannel_message, proto_turnchannel);
+ turnchannel_udp_handle = find_dissector("turnchannel");
- dissector_add("tcp.port", 0, turnchannel_tcp_handle);
- dissector_add("udp.port", 0, turnchannel_udp_handle);
+ dissector_add_handle("tcp.port", turnchannel_tcp_handle); /* for decode-as */
+ dissector_add_handle("udp.port", turnchannel_udp_handle); /* ... */
heur_dissector_add("udp", dissect_turnchannel_heur, proto_turnchannel);
heur_dissector_add("tcp", dissect_turnchannel_heur, proto_turnchannel);