Re-generate a number of ASN.1-based dissectors with the most recent
[obnox/wireshark/wip.git] / h225-persistentdata.h
1 /*
2  * h225-persistentdata.h
3  * Definitions for lists and hash tables used in ethereal's h225 dissector
4  * for calculation of delays in h225-calls
5  *
6  * Copyright 2003 Lars Roland
7  *
8  * $Id$
9  *
10  * Ethereal - Network traffic analyzer
11  * By Gerald Combs <gerald@ethereal.com>
12  * Copyright 1998 Gerald Combs
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27  */
28
29 #ifndef __h225_HASH__
30 #define __h225_HASH__
31
32 #include <glib.h>
33 #include <epan/packet.h>
34 #include <epan/conversation.h>
35
36
37 /* Item of ras request list*/
38 typedef struct _h225ras_call_t {
39         guint32 requestSeqNum;
40         guint8 guid[16];
41         guint32 req_num;        /* frame number request seen */
42         guint32 rsp_num;        /* frame number response seen */
43         nstime_t req_time;      /* arrival time of request */
44         gboolean responded;     /* true, if request has been responded */
45         struct _h225ras_call_t *next_call; /* pointer to next ras request with same SequenceNumber and conversation handle */
46 } h225ras_call_t;
47
48
49 /* Item of ras-request key list*/
50 typedef struct _h225ras_call_info_key {
51         guint   reqSeqNum;
52         conversation_t *conversation;
53 } h225ras_call_info_key;
54
55 /* functions, needed using ras-request and halfcall matching*/
56 h225ras_call_t * find_h225ras_call(h225ras_call_info_key *h225ras_call_key ,int category);
57 h225ras_call_t * new_h225ras_call(h225ras_call_info_key *h225ras_call_key, packet_info *pinfo, guint8 *guid, int category);
58 h225ras_call_t * append_h225ras_call(h225ras_call_t *prev_call, packet_info *pinfo, guint8 *guid, int category);
59
60 void h225_init_routine(void); /* init routine, used by ethereal */
61
62 #endif /* __h225_HASH__*/