diff options
Diffstat (limited to 'epan/dissectors/packet-symantec.c')
-rw-r--r-- | epan/dissectors/packet-symantec.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/epan/dissectors/packet-symantec.c b/epan/dissectors/packet-symantec.c index 2b5bd6c5eb..fe2af0f9f8 100644 --- a/epan/dissectors/packet-symantec.c +++ b/epan/dissectors/packet-symantec.c @@ -18,14 +18,16 @@ void proto_register_symantec(void); void proto_reg_handoff_symantec(void); +static dissector_handle_t symantec_handle; + static dissector_table_t ethertype_dissector_table; /* protocols and header fields */ -static int proto_symantec = -1; -static int hf_symantec_if = -1; -static int hf_symantec_etype = -1; +static int proto_symantec; +static int hf_symantec_if; +static int hf_symantec_etype; -static gint ett_symantec = -1; +static gint ett_symantec; static int dissect_symantec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) @@ -121,6 +123,8 @@ proto_register_symantec(void) proto_symantec = proto_register_protocol("Symantec Enterprise Firewall", "Symantec", "symantec"); + symantec_handle = register_dissector("symantec", dissect_symantec, + proto_symantec); proto_register_field_array(proto_symantec, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } @@ -128,12 +132,7 @@ proto_register_symantec(void) void proto_reg_handoff_symantec(void) { - dissector_handle_t symantec_handle; - ethertype_dissector_table = find_dissector_table("ethertype"); - - symantec_handle = create_dissector_handle(dissect_symantec, - proto_symantec); dissector_add_uint("wtap_encap", WTAP_ENCAP_SYMANTEC, symantec_handle); } |