Start using functions from packet-rohc.c
[obnox/wireshark/wip.git] / epan / dissectors / 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  * $Id$
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  *
26  * Ref:
27  * http://www.ietf.org/rfc/rfc3095.txt         RObust Header Compression (ROHC): Framework and four profiles: RTP, UDP, ESP, and uncompressed
28  * http://datatracker.ietf.org/doc/rfc4815/    RObust Header Compression (ROHC): Corrections and Clarifications to RFC 3095
29  * http://datatracker.ietf.org/doc/rfc5225/    RObust Header Compression Version 2 (ROHCv2): Profiles for RTP, UDP, IP, ESP and UDP-Lite
30  */
31
32 #ifndef PACKET_ROHC_H
33 #define PACKET_ROHC_H
34
35 typedef struct rohc_info
36 {
37
38     /* RoHC settings */
39     gboolean           rohc_compression;
40     unsigned short     rohc_ip_version;
41     gboolean           cid_inclusion_info;
42     gboolean           large_cid_present;
43     enum rohc_mode     mode;
44     gboolean           rnd;
45     gboolean           udp_checkum_present;
46     unsigned short     profile;
47         proto_item         *last_created_item;
48 } rohc_info;
49
50 int dissect_rohc_ir_rtp_profile_dynamic(tvbuff_t *tvb, proto_tree *tree, int offset, rohc_info *p_rohc_info);
51 #endif PACKET_ROHC_H