change a whole bunch of ethereal into wireshark
[obnox/wireshark/wip.git] / epan / dissectors / packet-dcp.h
1 /* packet-dcp.h
2  * Definitions for Datagram Congestion Control Protocol, "DCCP" dissection:
3  * it should be conformance to draft-ietf-dccp-spec-11.txt
4  *
5  * Copyright 2005 _FF_
6  *
7  * Francesco Fondelli <francesco dot fondelli, gmail dot com>
8  *
9  * $Id: README.developer 11973 2004-09-11 23:10:14Z guy $
10  *
11  * template taken from packet-udp.c
12  *
13  * Wireshark - Network traffic analyzer
14  * By Gerald Combs <gerald@wireshark.org>
15  * Copyright 1998 Gerald Combs
16  *
17  * This program is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU General Public Licepnse
19  * as published by the Free Software Foundation; either version 2
20  * of the Licepnse, or (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25  * GNU General Public Licepnse for more details.
26  *
27  * You should have received a copy of the GNU General Public Licepnse
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30  */
31
32 #ifndef __PACKET_DCP_H__
33 #define __PACKET_DCP_H__
34
35 /* DCCP structs and definitions */
36 typedef struct _e_dcphdr {
37         guint16   sport;
38         guint16   dport;
39         guint8    data_offset;
40         guint8    cscov; /* 4 bits */
41         guint8    ccval; /* 4 bits */
42         guint16   checksum;
43         guint8    reserved1; /* 3 bits */
44         guint8    type; /* 4 bits */
45         gboolean  x; /* 1 bits */
46         guint8    reserved2; /* if x == 1 */
47         guint64   seq; /* 48 or 24 bits sequence number */
48         
49         guint16   ack_reserved; /* for all defined packet types except DCCP-Request and DCCP-Data */
50         guint64   ack; /* 48 or 24 bits acknowledgement sequence number */
51         
52         guint32   service_code; 
53         guint8    reset_code; 
54         guint8    data1; 
55         guint8    data2; 
56         guint8    data3; 
57         
58         address   ip_src;
59         address   ip_dst;
60 } e_dcphdr;
61
62 #endif /* __PACKET_DCP_H__ */