some compilers dont like unnamed unions and structs
[obnox/wireshark/wip.git] / epan / dissectors / packet-rmt-alc.h
1 /* packet-rmt-alc.h
2  * Reliable Multicast Transport (RMT)
3  * ALC Protocol Instantiation function definitions
4  * Copyright 2005, Stefano Pettini <spettini@users.sourceforge.net>
5  *
6  * $Id$
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  * 
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25  */
26  
27 #ifndef __PACKET_RMT_ALC__
28 #define __PACKET_RMT_ALC__
29
30 #include "packet-rmt-common.h"
31 #include "packet-rmt-lct.h"
32 #include "packet-rmt-fec.h"
33
34 /* Type definitions */
35 /* ================ */
36
37 /* Logical ALC packet representation */
38 struct _alc
39 {
40         guint8 version;
41         struct _lct lct;
42         struct _fec fec;
43 };
44
45 /* Wireshark stuff */
46 /* ============== */
47
48 /* ALC header field definitions*/
49 struct _alc_hf
50 {
51         int version;
52         
53         struct _lct_hf lct;
54         struct _fec_hf fec;
55         
56         int payload;
57 };
58
59 /* ALC subtrees */
60 struct _alc_ett
61 {
62         gint main;
63         
64         struct _lct_ett lct;
65         struct _fec_ett fec;
66 };
67
68 /* ALC preferences */
69 struct _alc_prefs
70 {
71         gboolean use_default_udp_port;
72         guint default_udp_port;
73
74         struct _lct_prefs lct;
75         struct _fec_prefs fec;
76 };
77
78 /* Function declarations */
79 /* ===================== */
80
81 #endif