Added the possibillity of Statistic pkg as well.

svn path=/trunk/; revision=19436
This commit is contained in:
Anders Broman 2006-10-04 22:43:38 +00:00
parent 662d1c90fa
commit 1677b21838
7 changed files with 35 additions and 8 deletions

View File

@ -541,7 +541,7 @@ static const value_string cmd_type[] = {
{ 0, NULL }
};
h248_curr_info_t curr_info = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
h248_curr_info_t curr_info = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
static guint32 error_code;
static h248_wildcard_t wild_term;
@ -1771,6 +1771,7 @@ dissect_h248(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
curr_info.pkg = NULL;
curr_info.evt = NULL;
curr_info.sig = NULL;
curr_info.stat = NULL;
curr_info.par = NULL;
/* Check if it is actually a text based h248 encoding, which we call

View File

@ -210,6 +210,13 @@ typedef struct _h248_pkg_evt_t {
h248_pkg_param_t* parameters;
} h248_pkg_evt_t;
typedef struct _h248_pkg_stat_t {
guint32 id;
int* hfid;
gint* ett;
h248_pkg_param_t* parameters;
} h248_pkg_stat_t;
typedef struct _h248_package_t {
guint32 id;
int* hfid;
@ -218,6 +225,7 @@ typedef struct _h248_package_t {
h248_pkg_param_t* properties;
h248_pkg_sig_t* signals;
h248_pkg_evt_t* events;
h248_pkg_stat_t* statistics;
} h248_package_t;
struct _h248_curr_info_t {
@ -229,6 +237,7 @@ struct _h248_curr_info_t {
h248_package_t* pkg;
h248_pkg_evt_t* evt;
h248_pkg_sig_t* sig;
h248_pkg_stat_t* stat;
h248_pkg_param_t* par;
};

View File

@ -953,7 +953,7 @@ static const value_string cmd_type[] = {
{ 0, NULL }
};
h248_curr_info_t curr_info = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
h248_curr_info_t curr_info = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
static guint32 error_code;
static h248_wildcard_t wild_term;
@ -5886,6 +5886,7 @@ dissect_h248(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
curr_info.pkg = NULL;
curr_info.evt = NULL;
curr_info.sig = NULL;
curr_info.stat = NULL;
curr_info.par = NULL;
/* Check if it is actually a text based h248 encoding, which we call
@ -7058,7 +7059,7 @@ void proto_register_h248(void) {
"", HFILL }},
/*--- End of included file: packet-h248-hfarr.c ---*/
#line 1890 "packet-h248-template.c"
#line 1891 "packet-h248-template.c"
{ &hf_h248_ctx, { "Context", "h248.ctx", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }},
{ &hf_h248_ctx_term, { "Termination", "h248.ctx.term", FT_STRING, BASE_NONE, NULL, 0, "", HFILL }},
@ -7218,7 +7219,7 @@ void proto_register_h248(void) {
&ett_h248_Value,
/*--- End of included file: packet-h248-ettarr.c ---*/
#line 1915 "packet-h248-template.c"
#line 1916 "packet-h248-template.c"
};
module_t *h248_module;

View File

@ -218,6 +218,13 @@ typedef struct _h248_pkg_evt_t {
h248_pkg_param_t* parameters;
} h248_pkg_evt_t;
typedef struct _h248_pkg_stat_t {
guint32 id;
int* hfid;
gint* ett;
h248_pkg_param_t* parameters;
} h248_pkg_stat_t;
typedef struct _h248_package_t {
guint32 id;
int* hfid;
@ -226,6 +233,7 @@ typedef struct _h248_package_t {
h248_pkg_param_t* properties;
h248_pkg_sig_t* signals;
h248_pkg_evt_t* events;
h248_pkg_stat_t* statistics;
} h248_package_t;
struct _h248_curr_info_t {
@ -237,6 +245,7 @@ struct _h248_curr_info_t {
h248_package_t* pkg;
h248_pkg_evt_t* evt;
h248_pkg_sig_t* sig;
h248_pkg_stat_t* stat;
h248_pkg_param_t* par;
};

View File

@ -111,6 +111,7 @@ static h248_package_t h248_package_3GUP = {
&hf_h248_package_3GUP_parameters,
&ett_h248_package_3GUP,
h248_package_3GUP_properties,
NULL,
NULL,
NULL
};

View File

@ -951,7 +951,8 @@ static h248_package_t h248_annexc_package = {
&hf_h248_pkg_annexc_parameters,
&ett_annexc,
h248_annexc_package_properties,
NULL,
NULL,
NULL,
NULL
};

View File

@ -63,8 +63,9 @@ static h248_package_t h248_pkg_generic = {
&hf_h248_pkg_generic_params,
&ett_h248_pkg_generic,
NULL,
NULL,
h248_pkg_generic_cause_evts
NULL,
h248_pkg_generic_cause_evts,
NULL
};
@ -95,6 +96,8 @@ static h248_package_t h248_pkg_root = {
&ett_h248_pkg_root,
h248_pkg_root_properties,
NULL,
NULL,
NULL,
NULL
};
*/
@ -121,6 +124,7 @@ static h248_package_t h248_pkg_tonegen = {
&ett_h248_pkg_tonegen,
h248_pkg_root_properties,
NULL,
NULL,
NULL
};
*/
@ -159,7 +163,8 @@ static h248_package_t h248_pkg_tdmc = {
&ett_h248_pkg_tdmc,
h248_pkg_tdmc_props,
NULL,
NULL
NULL,
NULL
};