aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h248.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-03-25 21:42:26 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-03-25 21:42:26 +0000
commit0b3d2a90ff16fb7e4a7726132d60adcc9bb6bc09 (patch)
tree58ad933a6154c5addfb8a57f637eb97b0cd70b11 /epan/dissectors/packet-h248.h
parent753ac017605096cca3812855eaa4b9f8f7bd5b96 (diff)
Migrate context tracing code from packet-h248.[ch] to gcp.[ch], so that the same code can be used by megaco (upcoming).
svn path=/trunk/; revision=21189
Diffstat (limited to 'epan/dissectors/packet-h248.h')
-rw-r--r--epan/dissectors/packet-h248.h164
1 files changed, 6 insertions, 158 deletions
diff --git a/epan/dissectors/packet-h248.h b/epan/dissectors/packet-h248.h
index 067a20c258..e9c237f6af 100644
--- a/epan/dissectors/packet-h248.h
+++ b/epan/dissectors/packet-h248.h
@@ -34,163 +34,11 @@
*/
#ifndef PACKET_H248_H
-#define PACKET_H248_H
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-#include <glib.h>
-#include <epan/packet.h>
-#include <epan/conversation.h>
-#include <epan/strutil.h>
-#include <epan/emem.h>
-#include <epan/expert.h>
-#include <epan/prefs.h>
-#include <epan/to_str.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <epan/dissectors/packet-ber.h>
-#include <epan/dissectors/packet-q931.h>
-#include <epan/dissectors/packet-mtp3.h>
-#include <epan/dissectors/packet-alcap.h>
-#include <epan/dissectors/packet-isup.h>
-
-#include <epan/sctpppids.h>
+#include <epan/gcp.h>
/*#include "packet-h248-exp.h"*/
-#define NULL_CONTEXT 0
-#define CHOOSE_CONTEXT 0xFFFFFFFE
-#define ALL_CONTEXTS 0xFFFFFFFF
-
-typedef enum {
- H248_CMD_NONE,
- H248_CMD_ADD_REQ,
- H248_CMD_MOVE_REQ,
- H248_CMD_MOD_REQ,
- H248_CMD_SUB_REQ,
- H248_CMD_AUDITCAP_REQ,
- H248_CMD_AUDITVAL_REQ,
- H248_CMD_NOTIFY_REQ,
- H248_CMD_SVCCHG_REQ,
- H248_CMD_TOPOLOGY_REQ,
- H248_CMD_CTX_ATTR_AUDIT_REQ,
- H248_CMD_ADD_REPLY,
- H248_CMD_MOVE_REPLY,
- H248_CMD_MOD_REPLY,
- H248_CMD_SUB_REPLY,
- H248_CMD_AUDITCAP_REPLY,
- H248_CMD_AUDITVAL_REPLY,
- H248_CMD_NOTIFY_REPLY,
- H248_CMD_SVCCHG_REPLY,
- H248_CMD_TOPOLOGY_REPLY,
- H248_CMD_REPLY
-} h248_cmd_type_t;
-
-typedef enum {
- H248_TRX_NONE,
- H248_TRX_REQUEST,
- H248_TRX_PENDING,
- H248_TRX_REPLY,
- H248_TRX_ACK
-} h248_trx_type_t;
-
-
-typedef struct _h248_msg_t {
- guint32 lo_addr;
- guint32 hi_addr;
- guint32 framenum;
- struct _h248_trx_msg_t* trxs;
- gboolean commited;
-} h248_msg_t;
-
-typedef struct _h248_trx_msg_t {
- struct _h248_trx_t* trx;
- struct _h248_trx_msg_t* next;
- struct _h248_trx_msg_t* last;
-} h248_trx_msg_t;
-
-typedef struct _h248_cmd_msg_t {
- struct _h248_cmd_t* cmd;
- struct _h248_cmd_msg_t* next;
- struct _h248_cmd_msg_t* last;
-} h248_cmd_msg_t;
-
-typedef struct _h248_trx_t {
- h248_msg_t* initial;
- guint32 id;
- h248_trx_type_t type;
- guint pendings;
- struct _h248_cmd_msg_t* cmds;
- struct _h248_trx_ctx_t* ctxs;
- guint error;
-} h248_trx_t;
-
-#define H248_TERM_TYPE_UNKNOWN 0
-#define H248_TERM_TYPE_AAL1 1
-#define H248_TERM_TYPE_AAL2 2
-#define H248_TERM_TYPE_AAL1_STRUCT 3
-#define H248_TERM_TYPE_IP_RTP 4
-#define H248_TERM_TYPE_TDM 5
-
-typedef enum _h248_wildcard_t {
- H248_WILDCARD_NONE,
- H248_WILDCARD_CHOOSE,
- H248_WILDCARD_ALL
-} h248_wildcard_t;
-
-typedef struct _h248_term_t {
- gchar* str;
-
- guint8* buffer;
- guint len;
-
- guint type;
- gchar* bir;
- gchar* nsap;
-
- h248_msg_t* start;
-
- /*
- guint16 vp;
- guint16 vc;
- guint32 ts_mask;
- address* src_addr;
- address* dst_addr;
- guint16 src_pt;
- guint16 dst_pt;
- */
-
-} h248_term_t;
-
-typedef struct _h248_terms_t {
- h248_term_t* term;
- struct _h248_terms_t* next;
- struct _h248_terms_t* last;
-} h248_terms_t;
-
-typedef struct _h248_cmd_t {
- guint offset;
- gchar* str;
- h248_cmd_type_t type;
- h248_terms_t terms;
- struct _h248_msg_t* msg;
- struct _h248_trx_t* trx;
- struct _h248_ctx_t* ctx;
- guint error;
-} h248_cmd_t;
-
-
-typedef struct _h248_ctx_t {
- h248_msg_t* initial;
- guint32 id;
- struct _h248_cmd_msg_t* cmds;
- struct _h248_ctx_t* prev;
- h248_terms_t terms;
-} h248_ctx_t;
-
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*);
@@ -248,11 +96,11 @@ typedef struct _h248_package_t {
} h248_package_t;
struct _h248_curr_info_t {
- h248_ctx_t* ctx;
- h248_trx_t* trx;
- h248_msg_t* msg;
- h248_term_t* term;
- h248_cmd_t* cmd;
+ gcp_ctx_t* ctx;
+ gcp_trx_t* trx;
+ gcp_msg_t* msg;
+ gcp_term_t* term;
+ gcp_cmd_t* cmd;
const h248_package_t* pkg;
const h248_pkg_evt_t* evt;
const h248_pkg_sig_t* sig;