Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-dccp.h
1 /* packet-dccp.h
2 * Definitions for Datagram Congestion Control Protocol, "DCCP" dissection:
3 * it should conform to RFC 4340
4 *
5 * Copyright 2005 _FF_
6 *
7 * Francesco Fondelli <francesco dot fondelli, gmail dot com>
8 *
9 * template taken from packet-udp.c
10 *
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
14 *
15 * SPDX-License-Identifier: GPL-2.0-or-later
16 */
17
18 #ifndef __PACKET_DCCP_H__
19 #define __PACKET_DCCP_H__
20
21 /* DCCP structs and definitions */
22 typedef struct _e_dccphdr {
23 guint16 sport;
24 guint16 dport;
25 guint8 data_offset;
26 guint8 cscov; /* 4 bits */
27 guint8 ccval; /* 4 bits */
28 guint16 checksum;
29 guint8 reserved1; /* 3 bits */
30 guint8 type; /* 4 bits */
31 gboolean x; /* 1 bits */
32 guint8 reserved2; /* if x == 1 */
33 guint64 seq; /* 48 or 24 bits sequence number */
34
35 guint16 ack_reserved; /*
36 * for all defined packet types except DCCP-Request
37 * and DCCP-Data
38 */
39 guint64 ack; /* 48 or 24 bits acknowledgement sequence number */
40
41 guint32 service_code;
42 guint8 reset_code;
43 guint8 data1;
44 guint8 data2;
45 guint8 data3;
46
47 address ip_src;
48 address ip_dst;
49 } e_dccphdr;
50
51 #endif /* __PACKET_DCCP_H__ */
52
53 /*
54 * Editor modelines - http://www.wireshark.org/tools/modelines.html
55 *
56 * Local variables:
57 * c-basic-offset: 4
58 * tab-width: 8
59 * indent-tabs-mode: nil
60 * End:
61 *
62 * vi: set shiftwidth=4 tabstop=8 expandtab:
63 * :indentSize=4:tabSize=8:noTabs=true:
64 */
_address
Definition: address.h:47
_e_dccphdr
Definition: packet-dccp.h:22