2 * Routines for H.282 packet dissection
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 #include <epan/packet.h>
32 #include <epan/conversation.h>
33 #include <epan/oids.h>
34 #include <epan/asn1.h>
39 #include "packet-per.h"
41 #define PNAME "H.282 Remote Device Control"
45 /* Initialize the protocol and registered fields */
47 #include "packet-h282-hf.c"
49 /* Initialize the subtree pointers */
50 static int ett_h282 = -1;
51 #include "packet-h282-ett.c"
57 #include "packet-h282-fn.c"
60 dissect_h282(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
62 proto_item *ti = NULL;
63 proto_tree *h282_tree = NULL;
65 if (check_col(pinfo->cinfo, COL_PROTOCOL))
66 col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME);
68 ti = proto_tree_add_item(tree, proto_h282, tvb, 0, -1, FALSE);
69 h282_tree = proto_item_add_subtree(ti, ett_h282);
71 return dissect_RDCPDU_PDU(tvb, pinfo, h282_tree);
74 /*--- proto_register_h282 ----------------------------------------------*/
75 void proto_register_h282(void) {
78 static hf_register_info hf[] = {
79 #include "packet-h282-hfarr.c"
82 /* List of subtrees */
83 static gint *ett[] = {
85 #include "packet-h282-ettarr.c"
88 /* Register protocol */
89 proto_h282 = proto_register_protocol(PNAME, PSNAME, PFNAME);
91 /* Register fields and subtrees */
92 proto_register_field_array(proto_h282, hf, array_length(hf));
93 proto_register_subtree_array(ett, array_length(ett));
95 new_register_dissector(PFNAME, dissect_h282, proto_h282);
96 new_register_dissector(PFNAME".device_list", dissect_NonCollapsingCapabilities_PDU, proto_h282);
100 /*--- proto_reg_handoff_h282 -------------------------------------------*/
101 void proto_reg_handoff_h282(void)