2 * Definitions for Datagram Congestion Control Protocol, "DCCP" dissection:
3 * it should be conformance to draft-ietf-dccp-spec-11.txt
7 * Francesco Fondelli <francesco dot fondelli, gmail dot com>
9 * $Id: README.developer 11973 2004-09-11 23:10:14Z guy $
11 * template taken from packet-udp.c
13 * Wireshark - Network traffic analyzer
14 * By Gerald Combs <gerald@wireshark.org>
15 * Copyright 1998 Gerald Combs
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.
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.
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.
32 #ifndef __PACKET_DCP_H__
33 #define __PACKET_DCP_H__
35 /* DCCP structs and definitions */
36 typedef struct _e_dcphdr {
40 guint8 cscov; /* 4 bits */
41 guint8 ccval; /* 4 bits */
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 */
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 */
62 #endif /* __PACKET_DCP_H__ */