2008-03-16 00:03:13 +00:00
|
|
|
/* packet-dccp.h
|
2005-09-20 15:18:28 +00:00
|
|
|
* Definitions for Datagram Congestion Control Protocol, "DCCP" dissection:
|
2012-03-14 01:39:24 +00:00
|
|
|
* it should conform to RFC 4340
|
2005-09-20 15:18:28 +00:00
|
|
|
*
|
|
|
|
* Copyright 2005 _FF_
|
|
|
|
*
|
|
|
|
* Francesco Fondelli <francesco dot fondelli, gmail dot com>
|
|
|
|
*
|
|
|
|
* template taken from packet-udp.c
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2005-09-20 15:18:28 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
2006-09-18 13:59:30 +00:00
|
|
|
* modify it under the terms of the GNU General Public License
|
2005-09-20 15:18:28 +00:00
|
|
|
* as published by the Free Software Foundation; either version 2
|
2006-09-18 13:59:30 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2005-09-20 15:18:28 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2006-09-18 13:59:30 +00:00
|
|
|
* GNU General Public License for more details.
|
2005-09-20 15:18:28 +00:00
|
|
|
*
|
2006-09-18 13:59:30 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2005-09-20 15:18:28 +00:00
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2005-09-20 15:18:28 +00:00
|
|
|
*/
|
|
|
|
|
2008-03-16 00:03:13 +00:00
|
|
|
#ifndef __PACKET_DCCP_H__
|
|
|
|
#define __PACKET_DCCP_H__
|
2005-09-20 15:18:28 +00:00
|
|
|
|
|
|
|
/* DCCP structs and definitions */
|
2012-03-14 01:39:24 +00:00
|
|
|
typedef struct _e_dccphdr {
|
2012-02-04 14:01:46 +00:00
|
|
|
guint16 sport;
|
|
|
|
guint16 dport;
|
|
|
|
guint8 data_offset;
|
|
|
|
guint8 cscov; /* 4 bits */
|
|
|
|
guint8 ccval; /* 4 bits */
|
|
|
|
guint16 checksum;
|
|
|
|
guint8 reserved1; /* 3 bits */
|
|
|
|
guint8 type; /* 4 bits */
|
|
|
|
gboolean x; /* 1 bits */
|
|
|
|
guint8 reserved2; /* if x == 1 */
|
|
|
|
guint64 seq; /* 48 or 24 bits sequence number */
|
|
|
|
|
|
|
|
guint16 ack_reserved; /*
|
|
|
|
* for all defined packet types except DCCP-Request
|
|
|
|
* and DCCP-Data
|
|
|
|
*/
|
|
|
|
guint64 ack; /* 48 or 24 bits acknowledgement sequence number */
|
|
|
|
|
|
|
|
guint32 service_code;
|
|
|
|
guint8 reset_code;
|
|
|
|
guint8 data1;
|
|
|
|
guint8 data2;
|
|
|
|
guint8 data3;
|
|
|
|
|
|
|
|
address ip_src;
|
|
|
|
address ip_dst;
|
2008-03-16 00:03:13 +00:00
|
|
|
} e_dccphdr;
|
2005-09-20 15:18:28 +00:00
|
|
|
|
2008-03-16 00:03:13 +00:00
|
|
|
#endif /* __PACKET_DCCP_H__ */
|
2012-03-14 01:39:24 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
2012-03-21 18:27:10 +00:00
|
|
|
* tab-width: 8
|
2012-03-14 01:39:24 +00:00
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
2012-03-21 18:27:10 +00:00
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
2012-03-14 01:39:24 +00:00
|
|
|
*/
|