5 * Gateway control protocol: Media gateway
6 * resource congestion handling package
8 * (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * SPDX-License-Identifier: GPL-2.0-or-later
20 #include "packet-h248.h"
22 void proto_register_h248_dot10(void);
24 #define PNAME "H.248.10"
25 #define PSNAME "H248CHP"
26 #define PFNAME "h248.chp"
28 static int proto_h248_CHP
;
30 static int hf_h248_CHP_mgcon
;
31 static int hf_h248_CHP_mgcon_reduction
;
33 static int ett_h248_CHP
;
34 static int ett_h248_CHP_mgcon
;
36 static const value_string h248_CHP_prop_vals
[] = {
37 { 0, "chp (MG Congestion Handling)" },
41 static const value_string h248_CHP_events_vals
[] = {
46 static const value_string h248_CHP_mgcon_params_vals
[] = {
52 static const h248_pkg_param_t h248_CHP_mgcon_params
[] = {
53 { 0x0001, &hf_h248_CHP_mgcon_reduction
, h248_param_ber_integer
, NULL
},
54 { 0, NULL
, NULL
, NULL
}
58 static const h248_pkg_evt_t h248_CHP_mgcon_events
[] = {
59 { 0x0001, &hf_h248_CHP_mgcon
, &ett_h248_CHP_mgcon
, h248_CHP_mgcon_params
, h248_CHP_mgcon_params_vals
},
60 { 0, NULL
, NULL
, NULL
, NULL
}
63 static h248_package_t h248_pkg_CHP
= {
75 h248_CHP_mgcon_events
,
79 void proto_register_h248_dot10(void) {
80 static hf_register_info hf
[] = {
81 /* H.248.1 E.1 Generic Package */
82 { &hf_h248_CHP_mgcon
, { "MGCon", "h248.chp.mgcon", FT_BYTES
, BASE_NONE
, NULL
, 0, "This event occurs when the MG requires that the MGC start or finish load reduction.", HFILL
}},
83 { &hf_h248_CHP_mgcon_reduction
, { "Reduction", "h248.chp.mgcon.reduction", FT_UINT32
, BASE_DEC
, NULL
, 0, "Percentage of the load that the MGC is requested to block", HFILL
}},
91 proto_h248_CHP
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
93 proto_register_field_array(proto_h248_CHP
, hf
, array_length(hf
));
95 proto_register_subtree_array(ett
, array_length(ett
));
97 h248_register_package(&h248_pkg_CHP
,REPLACE_PKG
);
101 * Editor modelines - https://www.wireshark.org/tools/modelines.html
106 * indent-tabs-mode: t
109 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
110 * :indentSize=8:tabSize=8:noTabs=false: