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
15 #include <epan/packet.h>
16 #include <epan/proto_data.h>
17 #include <wsutil/array.h>
18 #include "packet-ber.h"
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 */
34 #include "packet-glow-ett.c"
36 #include "packet-glow-fn.c"
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) {
59 static hf_register_info hf
[] = {
61 #include "packet-glow-hfarr.c"
64 /* List of subtrees */
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
87 * indent-tabs-mode: nil
90 * vi: set shiftwidth=4 tabstop=8 expandtab:
91 * :indentSize=4:tabSize=8:noTabs=true: