diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-09-03 16:42:35 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-09-03 16:42:35 +0000 |
commit | 419e3a47f6a9c887edc949235dc0755a98d4c4ee (patch) | |
tree | 0cba41be21c97f7851f13844ce71399d7be20e97 /epan/dissectors/packet-tipc.c | |
parent | af49f0161686d18f45b749d96eaf431ce45625d0 (diff) |
Cleanup related to prefs & proto_reg_handoff
svn path=/trunk/; revision=26128
Diffstat (limited to 'epan/dissectors/packet-tipc.c')
-rw-r--r-- | epan/dissectors/packet-tipc.c | 9 |
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); |