2011-12-08 21:45:35 +00:00
|
|
|
/* packet-rohc.h
|
|
|
|
* Routines for RObust Header Compression (ROHC) dissection.
|
|
|
|
*
|
|
|
|
* Copyright 2011, Anders Broman <anders.broman[at]ericsson.com>
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2011-12-08 21:45:35 +00:00
|
|
|
*
|
|
|
|
* Ref:
|
|
|
|
* http://www.ietf.org/rfc/rfc3095.txt RObust Header Compression (ROHC): Framework and four profiles: RTP, UDP, ESP, and uncompressed
|
|
|
|
* http://datatracker.ietf.org/doc/rfc4815/ RObust Header Compression (ROHC): Corrections and Clarifications to RFC 3095
|
|
|
|
* http://datatracker.ietf.org/doc/rfc5225/ RObust Header Compression Version 2 (ROHCv2): Profiles for RTP, UDP, IP, ESP and UDP-Lite
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PACKET_ROHC_H
|
|
|
|
#define PACKET_ROHC_H
|
|
|
|
|
2011-12-15 17:28:43 +00:00
|
|
|
#define MAX_CID 15
|
|
|
|
|
2011-12-09 02:34:53 +00:00
|
|
|
enum rohc_mode
|
2011-12-08 21:45:35 +00:00
|
|
|
{
|
2012-01-03 22:08:13 +00:00
|
|
|
MODE_NOT_SET = 0,
|
2011-12-09 02:34:53 +00:00
|
|
|
UNIDIRECTIONAL = 1,
|
|
|
|
OPTIMISTIC_BIDIRECTIONAL = 2,
|
|
|
|
RELIABLE_BIDIRECTIONAL = 3
|
|
|
|
};
|
2011-12-08 21:45:35 +00:00
|
|
|
|
2011-12-15 17:28:43 +00:00
|
|
|
enum rohc_d_mode
|
|
|
|
{
|
|
|
|
NO_CONTEXT = 1,
|
|
|
|
STATIC_CONTEXT = 2,
|
|
|
|
FULL_CONTEXT = 3
|
|
|
|
};
|
2011-12-09 02:34:53 +00:00
|
|
|
typedef struct rohc_info
|
|
|
|
{
|
2011-12-08 21:45:35 +00:00
|
|
|
gboolean rohc_compression;
|
2011-12-15 17:28:43 +00:00
|
|
|
guint16 rohc_ip_version;
|
2011-12-08 21:45:35 +00:00
|
|
|
gboolean cid_inclusion_info;
|
|
|
|
gboolean large_cid_present;
|
|
|
|
enum rohc_mode mode;
|
|
|
|
gboolean rnd;
|
|
|
|
gboolean udp_checkum_present;
|
2011-12-15 17:28:43 +00:00
|
|
|
guint16 profile;
|
2011-12-09 00:56:48 +00:00
|
|
|
proto_item *last_created_item;
|
2011-12-08 21:45:35 +00:00
|
|
|
} rohc_info;
|
|
|
|
|
2011-12-15 17:28:43 +00:00
|
|
|
|
|
|
|
typedef struct rohc_context
|
|
|
|
{
|
|
|
|
guint16 rohc_ip_version[MAX_CID+1];
|
|
|
|
gboolean large_cid_present[MAX_CID+1];
|
|
|
|
enum rohc_mode mode[MAX_CID+1];
|
|
|
|
enum rohc_d_mode d_mode[MAX_CID+1];
|
|
|
|
gboolean rnd[MAX_CID+1];
|
|
|
|
gboolean udp_checkum_present[MAX_CID+1];
|
|
|
|
guint16 profile[MAX_CID+1];
|
2012-01-03 22:08:13 +00:00
|
|
|
gboolean rohc_context_init[MAX_CID+1];
|
|
|
|
gint ir_frame_number[MAX_CID+1]; /* The frame number of the last IR packet seen */
|
2011-12-15 17:28:43 +00:00
|
|
|
|
2012-01-03 22:08:13 +00:00
|
|
|
} rohc_context;
|
2011-12-09 18:58:26 +00:00
|
|
|
|
2011-12-09 00:56:48 +00:00
|
|
|
#endif /* PACKET_ROHC_H */
|