Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-h248_10.c
blobeae81a4097249797df86ed808e7e2ba4af3a894c
1 /*
2 * packet-h248_10.c
4 * H.248.10
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
18 #include "config.h"
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)" },
38 { 0, NULL }
41 static const value_string h248_CHP_events_vals[] = {
42 {1, "MGCon"},
43 { 0, NULL }
46 static const value_string h248_CHP_mgcon_params_vals[] = {
47 {1, "reduction"},
48 { 0, NULL }
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 = {
64 0x0029,
65 &proto_h248_CHP,
66 &ett_h248_CHP,
68 h248_CHP_prop_vals,
69 NULL,
70 h248_CHP_events_vals,
71 NULL,
73 NULL,
74 NULL,
75 h248_CHP_mgcon_events,
76 NULL
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 }},
86 static int *ett[] = {
87 &ett_h248_CHP,
88 &ett_h248_CHP_mgcon,
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
103 * Local variables:
104 * c-basic-offset: 8
105 * tab-width: 8
106 * indent-tabs-mode: t
107 * End:
109 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
110 * :indentSize=8:tabSize=8:noTabs=false: