Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / glow / packet-glow-template.c
blob1eecd8b89df600a0230c01bf3cb9e3c97172afec
1 /* packet-glow.c
2 * Routines for GLOW packet dissection
4 * Copyright 2018, Gilles Dufour <dufour.gilles@gmail.com>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 # include "config.h"
15 #include <epan/packet.h>
16 #include <epan/proto_data.h>
17 #include <wsutil/array.h>
18 #include "packet-ber.h"
20 #define PNAME "Glow"
21 #define PSNAME "GLOW"
22 #define PFNAME "glow"
24 void proto_register_glow(void);
26 static dissector_handle_t glow_handle;
27 static int proto_glow;
29 #include "packet-glow-hf.c"
31 /* Initialize the subtree pointers */
32 static int ett_glow;
34 #include "packet-glow-ett.c"
36 #include "packet-glow-fn.c"
38 static int
39 dissect_glow(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
41 proto_item *glow_item = NULL;
42 proto_tree *glow_tree = NULL;
44 /* make entry in the Protocol column on summary display */
45 col_set_str(pinfo->cinfo, COL_PROTOCOL, PNAME);
47 /* create the glow protocol tree */
48 glow_item = proto_tree_add_item(tree, proto_glow, tvb, 0, -1, ENC_NA);
49 glow_tree = proto_item_add_subtree(glow_item, ett_glow);
51 dissect_Root_PDU(tvb, pinfo, glow_tree, data);
53 return tvb_captured_length(tvb);
56 void proto_register_glow(void) {
58 /* List of fields */
59 static hf_register_info hf[] = {
61 #include "packet-glow-hfarr.c"
64 /* List of subtrees */
65 static int *ett[] = {
66 &ett_glow,
67 #include "packet-glow-ettarr.c"
71 /* Register protocol */
72 proto_glow = proto_register_protocol(PNAME, PSNAME, PFNAME);
73 glow_handle = register_dissector("glow", dissect_glow, proto_glow);
75 /* Register fields and subtrees */
76 proto_register_field_array(proto_glow, hf, array_length(hf));
77 proto_register_subtree_array(ett, array_length(ett));
82 * Editor modelines - https://www.wireshark.org/tools/modelines.html
84 * Local variables:
85 * c-basic-offset: 4
86 * tab-width: 8
87 * indent-tabs-mode: nil
88 * End:
90 * vi: set shiftwidth=4 tabstop=8 expandtab:
91 * :indentSize=4:tabSize=8:noTabs=true: