Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

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

- File List
- File Members

packet-rohc.h
1 /* packet-rohc.h
2 * Routines for RObust Header Compression (ROHC) dissection.
3 *
4 * Copyright 2011, Anders Broman <anders.broman[at]ericsson.com>
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 *
12 * Ref:
13 * http://www.ietf.org/rfc/rfc3095.txt RObust Header Compression (ROHC): Framework and four profiles: RTP, UDP, ESP, and uncompressed
14 * http://datatracker.ietf.org/doc/rfc4815/ RObust Header Compression (ROHC): Corrections and Clarifications to RFC 3095
15 * http://datatracker.ietf.org/doc/rfc5225/ RObust Header Compression Version 2 (ROHCv2): Profiles for RTP, UDP, IP, ESP and UDP-Lite
16 */
17
18 #ifndef PACKET_ROHC_H
19 #define PACKET_ROHC_H
20
21 #define MAX_CID 15
22
23 enum rohc_mode
24 {
25 MODE_NOT_SET = 0,
26 UNIDIRECTIONAL = 1,
27 OPTIMISTIC_BIDIRECTIONAL = 2,
28 RELIABLE_BIDIRECTIONAL = 3
29 };
30
31 enum rohc_d_mode
32 {
33 NO_CONTEXT = 1,
34 STATIC_CONTEXT = 2,
35 FULL_CONTEXT = 3
36 };
37 typedef struct rohc_info
38 {
39 gboolean rohc_compression;
40 guint8 rohc_ip_version;
41 gboolean cid_inclusion_info;
42 gboolean large_cid_present;
43 enum rohc_mode mode;
44 gboolean rnd;
45 gboolean udp_checksum_present;
46 guint16 profile;
47 proto_item *last_created_item;
48 } rohc_info;
49
50
51 typedef struct rohc_context
52 {
53 guint8 rohc_ip_version[MAX_CID+1];
54 gboolean large_cid_present[MAX_CID+1];
55 enum rohc_mode mode[MAX_CID+1];
56 enum rohc_d_mode d_mode[MAX_CID+1];
57 gboolean rnd[MAX_CID+1];
58 gboolean udp_checkum_present[MAX_CID+1];
59 guint16 profile[MAX_CID+1];
60 gboolean rohc_context_init[MAX_CID+1];
61 gint ir_frame_number[MAX_CID+1]; /* The frame number of the last IR packet seen */
62
63 } rohc_context;
64
65 #endif /* PACKET_ROHC_H */
rohc_context
Definition: packet-rohc.h:51
profile
Definition: packet-epl.h:23
rohc_info
Definition: packet-rohc.h:37
_proto_node
Definition: proto.h:759