2 * Routines for H.450 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.
32 #include <epan/packet.h>
33 #include <epan/strutil.h>
34 #include <epan/asn1.h>
35 #include <epan/expert.h>
37 #include "packet-per.h"
39 #define PNAME "H.450 Remote Operations Apdus"
40 #define PSNAME "H450.ROS"
41 #define PFNAME "h450.ros"
43 /* Initialize the protocol and registered fields */
44 static int proto_h450_ros = -1;
45 #include "packet-h450-ros-hf.c"
47 /* Initialize the subtree pointers */
48 #include "packet-h450-ros-ett.c"
53 static dissector_handle_t data_handle = NULL;
55 /* Gloabl variables */
56 static gint32 problem_val;
57 static gchar problem_str[64];
58 static tvbuff_t *arg_next_tvb, *res_next_tvb, *err_next_tvb;
61 argument_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_) {
66 result_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_) {
71 error_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_) {
75 #include "packet-h450-ros-fn.c"
77 /*--- proto_register_h450_ros -----------------------------------------------*/
78 void proto_register_h450_ros(void) {
81 static hf_register_info hf[] = {
82 #include "packet-h450-ros-hfarr.c"
85 /* List of subtrees */
86 static gint *ett[] = {
87 #include "packet-h450-ros-ettarr.c"
90 /* Register protocol and dissector */
91 proto_h450_ros = proto_register_protocol(PNAME, PSNAME, PFNAME);
92 proto_set_cant_toggle(proto_h450_ros);
94 /* Register fields and subtrees */
95 proto_register_field_array(proto_h450_ros, hf, array_length(hf));
96 proto_register_subtree_array(ett, array_length(ett));
99 /*--- proto_reg_handoff_h450_ros --------------------------------------------*/
100 void proto_reg_handoff_h450_ros(void) {
101 data_handle = find_dissector("data");
104 /*---------------------------------------------------------------------------*/