22#include "ws_symbol_export.h"
49#define CHOOSE_CONTEXT 0xFFFFFFFE
50#define ALL_CONTEXTS 0xFFFFFFFF
64 GCP_CMD_CTX_ATTR_AUDIT_REQ,
70 GCP_CMD_AUDITCAP_REPLY,
71 GCP_CMD_AUDITVAL_REPLY,
74 GCP_CMD_TOPOLOGY_REPLY,
114 struct _gcp_trx_ctx_t* ctxs;
118#define GCP_TERM_TYPE_UNKNOWN 0
119#define GCP_TERM_TYPE_AAL1 1
120#define GCP_TERM_TYPE_AAL2 2
121#define GCP_TERM_TYPE_AAL1_STRUCT 3
122#define GCP_TERM_TYPE_IP_RTP 4
123#define GCP_TERM_TYPE_TDM 5
125typedef enum _gcp_wildcard_t {
134 const uint8_t* buffer;
171extern gcp_msg_t* gcp_msg(
packet_info* pinfo,
int o,
bool persistent);
172extern gcp_trx_t* gcp_trx(gcp_msg_t* m ,uint32_t t_id , gcp_trx_type_t type,
packet_info *pinfo,
bool persistent);
173extern gcp_ctx_t* gcp_ctx(gcp_msg_t* m, gcp_trx_t* t, uint32_t c_id,
packet_info *pinfo,
bool persistent);
174extern gcp_cmd_t* gcp_cmd(gcp_msg_t* m, gcp_trx_t* t, gcp_ctx_t* c, gcp_cmd_type_t type,
unsigned offset,
packet_info *pinfo,
bool persistent);
175extern gcp_term_t* gcp_cmd_add_term(gcp_msg_t* m, gcp_trx_t* tr, gcp_cmd_t* c, gcp_term_t* t, gcp_wildcard_t wildcard,
packet_info *pinfo,
bool persistent);
176extern void gcp_analyze_msg(proto_tree* gcp_tree,
packet_info* pinfo, tvbuff_t* gcp_tvb, gcp_msg_t* m, gcp_hf_ett_t* ids,
expert_field* command_err);
178#define GCP_ETT_ARR_ELEMS(gi) &(gi.ett.ctx),&(gi.ett.ctx_cmds),&(gi.ett.ctx_terms),&(gi.ett.ctx_term)
180#define GCP_HF_ARR_ELEMS(n,gi) \
181 { &(gi.hf.ctx), { "Context", n ".ctx", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }}, \
182 { &(gi.hf.ctx_term), { "Termination", n ".ctx.term", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, \
183 { &(gi.hf.ctx_term_type), { "Type", n ".ctx.term.type", FT_UINT32, BASE_HEX, VALS(gcp_term_types), 0, NULL, HFILL }}, \
184 { &(gi.hf.ctx_term_bir), { "BIR", n ".ctx.term.bir", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, \
185 { &(gi.hf.ctx_term_nsap), { "NSAP", n ".ctx.term.nsap", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, \
186 { &(gi.hf.ctx_cmd), { "Command in Frame", n ".ctx.cmd", FT_FRAMENUM, BASE_NONE, NULL, 0, NULL, HFILL }}
191extern const char* gcp_msg_to_str(gcp_msg_t* m,
wmem_allocator_t *scope,
bool persistent);
193#define gcp_cmd_set_error(c,e) (c->error = e)
194#define gcp_trx_set_error(t,e) (t->error = e)
200typedef void (*h248_pkg_param_dissector_t)(proto_tree* tree, tvbuff_t* tvb,
packet_info* pinfo _U_,
int hfid, h248_curr_info_t*,
void*);
202extern void h248_param_bytes_item(proto_tree*, tvbuff_t*,
packet_info* ,
int, h248_curr_info_t*,
void* ignored);
203extern void h248_param_uint_item(proto_tree*, tvbuff_t*,
packet_info* ,
int, h248_curr_info_t*,
void* ignored);
204WS_DLL_PUBLIC
void h248_param_ber_integer(proto_tree*, tvbuff_t*,
packet_info* ,
int, h248_curr_info_t*,
void* ignored);
205extern void h248_param_ber_octetstring(proto_tree*, tvbuff_t*,
packet_info* ,
int, h248_curr_info_t*,
void* ignored);
206extern void h248_param_ber_boolean(proto_tree*, tvbuff_t*,
packet_info* ,
int, h248_curr_info_t*,
void* ignored);
208extern void h248_param_PkgdName(proto_tree* tree, tvbuff_t* tvb,
packet_info* pinfo ,
int hfid _U_, h248_curr_info_t* u _U_,
void* dissector_hdl);
209extern void h248_param_external_dissector(proto_tree* tree, tvbuff_t* tvb,
packet_info* pinfo ,
int hfid _U_, h248_curr_info_t* u _U_,
void* dissector_hdl);
221 h248_pkg_param_dissector_t dissector;
229 const h248_pkg_param_t* parameters;
237 const h248_pkg_param_t* parameters;
245 const h248_pkg_param_t* parameters;
257 const h248_pkg_param_t* properties;
258 const h248_pkg_sig_t* signals;
259 const h248_pkg_evt_t* events;
260 const h248_pkg_stat_t* statistics;
274 const h248_package_t* pkg;
275 const h248_pkg_evt_t* evt;
276 const h248_pkg_sig_t* sig;
277 const h248_pkg_stat_t* stat;
278 const h248_pkg_param_t* par;
287void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action);
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
struct _wmem_allocator_t wmem_allocator_t
Definition wmem_core.h:44
Definition packet-h248.h:102
Definition packet-h248.h:151
Definition packet-h248.h:163
Definition packet-h248.h:30
Definition packet-h248.h:87
Definition packet-h248.h:131
Definition packet-h248.h:145
Definition packet-h248.h:96
Definition packet-h248.h:108
Definition packet-h248.h:268
Definition packet-h248.h:249
int * hfid
Definition packet-h248.h:251
int * ett
Definition packet-h248.h:252
const value_string * param_names
Definition packet-h248.h:253
uint32_t id
Definition packet-h248.h:250
Definition packet-h248.h:233
Definition packet-h248.h:218
Definition packet-h248.h:225
Definition packet-h248.h:241
Definition packet-h248.h:263
Pairs an expert info index with its associated header field index for registration and display.
Definition expert.h:41
Definition packet-h248.h:281
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.