2005-06-06 18:51:05 +00:00
|
|
|
/* Do not modify this file. */
|
2006-05-24 12:24:54 +00:00
|
|
|
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
2007-11-07 17:55:57 +00:00
|
|
|
/* packet-h248.h */
|
2012-03-13 13:26:13 +00:00
|
|
|
/* ../../tools/asn2wrs.py -b -p h248 -c ./h248.cnf -s ./packet-h248-template -D . -O ../../epan/dissectors h248v3.asn h248v1support.asn */
|
2005-06-06 18:51:05 +00:00
|
|
|
|
|
|
|
/* Input file: packet-h248-template.h */
|
|
|
|
|
2011-04-12 20:45:25 +00:00
|
|
|
#line 1 "../../asn1/h248/packet-h248-template.h"
|
2005-06-06 18:51:05 +00:00
|
|
|
/* packet-h248.h
|
2005-12-06 18:52:17 +00:00
|
|
|
* Definitions for H.248/MEGACO packet dissection
|
|
|
|
*
|
2005-06-06 18:51:05 +00:00
|
|
|
* Ronnie Sahlberg 2004
|
2005-12-06 18:52:17 +00:00
|
|
|
* Luis Ontanon 2005
|
2005-06-06 18:51:05 +00:00
|
|
|
*
|
2005-08-02 05:39:45 +00:00
|
|
|
* $Id$
|
2005-06-06 18:51:05 +00:00
|
|
|
*
|
2007-01-04 22:44:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2005-06-06 18:51:05 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PACKET_H248_H
|
2006-10-03 17:24:28 +00:00
|
|
|
|
2007-03-25 21:42:26 +00:00
|
|
|
#include <epan/gcp.h>
|
2005-06-06 18:51:05 +00:00
|
|
|
|
|
|
|
/*#include "packet-h248-exp.h"*/
|
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
typedef struct _h248_curr_info_t h248_curr_info_t;
|
|
|
|
|
|
|
|
typedef void (*h248_pkg_param_dissector_t)(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t*, void*);
|
|
|
|
|
|
|
|
extern void h248_param_item(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
|
|
|
|
extern void h248_param_ber_integer(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
|
|
|
|
extern void h248_param_ber_octetstring(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
|
|
|
|
extern void h248_param_ber_boolean(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
|
|
|
|
extern void external_dissector(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* dissector_handle);
|
2007-03-03 16:36:19 +00:00
|
|
|
extern 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);
|
2006-10-03 17:24:28 +00:00
|
|
|
|
|
|
|
typedef struct _h248_pkg_param_t {
|
|
|
|
guint32 id;
|
|
|
|
int* hfid;
|
|
|
|
h248_pkg_param_dissector_t dissector;
|
|
|
|
void* data;
|
|
|
|
} h248_pkg_param_t;
|
|
|
|
|
|
|
|
typedef struct _h248_pkg_sig_t {
|
|
|
|
guint32 id;
|
|
|
|
int* hfid;
|
|
|
|
gint* ett;
|
2007-02-23 20:57:22 +00:00
|
|
|
const h248_pkg_param_t* parameters;
|
|
|
|
const value_string* param_names;
|
2006-10-03 17:24:28 +00:00
|
|
|
} h248_pkg_sig_t;
|
|
|
|
|
|
|
|
typedef struct _h248_pkg_evt_t {
|
|
|
|
guint32 id;
|
|
|
|
int* hfid;
|
|
|
|
gint* ett;
|
2007-02-23 20:57:22 +00:00
|
|
|
const h248_pkg_param_t* parameters;
|
|
|
|
const value_string* param_names;
|
2006-10-03 17:24:28 +00:00
|
|
|
} h248_pkg_evt_t;
|
|
|
|
|
2006-10-04 22:43:38 +00:00
|
|
|
typedef struct _h248_pkg_stat_t {
|
|
|
|
guint32 id;
|
|
|
|
int* hfid;
|
|
|
|
gint* ett;
|
2007-02-23 20:57:22 +00:00
|
|
|
const h248_pkg_param_t* parameters;
|
|
|
|
const value_string* param_names;
|
2006-10-04 22:43:38 +00:00
|
|
|
} h248_pkg_stat_t;
|
|
|
|
|
2006-10-03 17:24:28 +00:00
|
|
|
typedef struct _h248_package_t {
|
|
|
|
guint32 id;
|
|
|
|
int* hfid;
|
|
|
|
gint* ett;
|
2007-02-23 20:57:22 +00:00
|
|
|
const value_string* param_names;
|
|
|
|
const value_string* signal_names;
|
|
|
|
const value_string* event_names;
|
|
|
|
const value_string* stats_names;
|
|
|
|
const h248_pkg_param_t* properties;
|
|
|
|
const h248_pkg_sig_t* signals;
|
|
|
|
const h248_pkg_evt_t* events;
|
|
|
|
const h248_pkg_stat_t* statistics;
|
2006-10-03 17:24:28 +00:00
|
|
|
} h248_package_t;
|
|
|
|
|
|
|
|
struct _h248_curr_info_t {
|
2007-03-25 21:42:26 +00:00
|
|
|
gcp_ctx_t* ctx;
|
|
|
|
gcp_trx_t* trx;
|
|
|
|
gcp_msg_t* msg;
|
|
|
|
gcp_term_t* term;
|
|
|
|
gcp_cmd_t* cmd;
|
2007-02-23 20:57:22 +00:00
|
|
|
const h248_package_t* pkg;
|
|
|
|
const h248_pkg_evt_t* evt;
|
|
|
|
const h248_pkg_sig_t* sig;
|
|
|
|
const h248_pkg_stat_t* stat;
|
|
|
|
const h248_pkg_param_t* par;
|
2006-10-03 17:24:28 +00:00
|
|
|
};
|
|
|
|
|
2007-02-23 20:57:22 +00:00
|
|
|
void h248_register_package(const h248_package_t*);
|
2005-11-01 16:28:13 +00:00
|
|
|
|
|
|
|
#endif /* PACKET_H248_H */
|