aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tipc.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-03 16:42:35 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-03 16:42:35 +0000
commit01a4e1d9c59251982787425f8e2f588a47fa2d6e (patch)
tree0cba41be21c97f7851f13844ce71399d7be20e97 /epan/dissectors/packet-tipc.c
parent8c061b3ab4d47419051815dcb1264936b4440501 (diff)
Cleanup related to prefs & proto_reg_handoff
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26128 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-tipc.c')
-rw-r--r--epan/dissectors/packet-tipc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-tipc.c b/epan/dissectors/packet-tipc.c
index ebfd70d663..1f88c1ea02 100644
--- a/epan/dissectors/packet-tipc.c
+++ b/epan/dissectors/packet-tipc.c
@@ -52,8 +52,6 @@
static int proto_tipc = -1;
/* dissector handles */
-static dissector_handle_t tipc_handle;
-static dissector_handle_t tipc_tcp_handle;
static dissector_handle_t data_handle;
static dissector_handle_t ip_handle;
@@ -186,7 +184,6 @@ static gint ett_tipc = -1;
static gint ett_tipc_data = -1;
/* protocol preferences */
-static gboolean inited = FALSE;
static gboolean tipc_defragment = TRUE;
static gboolean dissect_tipc_data = TRUE;
static gboolean try_heuristic_first = FALSE;
@@ -195,7 +192,6 @@ static gboolean try_heuristic_first = FALSE;
#define V2_AS_1_7 0x4
static gint handle_v2_as = V2_AS_ALL;
static guint tipc_alternate_tcp_port = 0;
-static guint tipc_alternate_tcp_port_prev = 0;
static gboolean tipc_tcp_desegment = TRUE;
/* this is used to find encapsulated protocols */
@@ -2969,6 +2965,11 @@ proto_register_tipc(void)
void
proto_reg_handoff_tipc(void)
{
+ static gboolean inited = FALSE;
+ static dissector_handle_t tipc_handle;
+ static dissector_handle_t tipc_tcp_handle;
+ static guint tipc_alternate_tcp_port_prev = 0;
+
if (!inited) {
tipc_handle = create_dissector_handle(dissect_tipc, proto_tipc);
tipc_tcp_handle = new_create_dissector_handle(dissect_tipc_tcp, proto_tipc);