HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-mgcp.h
blob4f1c2970f9a8e98de3961f146bb5fb0b3db6968a
1 /* packet-mgcp.h
2 * Routines for mgcp packet disassembly
3 * RFC 2705
5 * $Id$
7 * Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu>
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1999 Gerald Combs
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 /* A simple MGCP type that is occasionally handy */
29 typedef enum _mgcp_type
31 MGCP_REQUEST,
32 MGCP_RESPONSE,
33 MGCP_OTHERS
34 } mgcp_type_t;
36 /* Container for tapping relevant data */
37 typedef struct _mgcp_info_t
39 mgcp_type_t mgcp_type;
40 char code[5];
41 guint32 transid;
42 nstime_t req_time;
43 gboolean is_duplicate;
44 gboolean request_available;
45 guint32 req_num; /* frame number request seen */
46 gchar *endpointId;
47 gchar *observedEvents;
48 guint32 rspcode;
49 gchar *signalReq;
50 gboolean hasDigitMap;
51 } mgcp_info_t;
53 /* Item of request list */
54 typedef struct _mgcp_call_t
56 guint32 transid;
57 char code[5];
58 guint32 req_num; /* frame number request seen */
59 guint32 rsp_num; /* frame number response seen */
60 guint32 rspcode;
61 nstime_t req_time;
62 gboolean responded;
63 } mgcp_call_t;
65 void proto_register_mgcp(void);
66 void proto_reg_handoff_mgcp(void);