2005-01-14 11:17:35 +00:00
|
|
|
/* packet-rmt-common.h
|
|
|
|
* Reliable Multicast Transport (RMT)
|
|
|
|
* Common RMT function definitions
|
|
|
|
* Copyright 2005, Stefano Pettini <spettini@users.sourceforge.net>
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2005-01-14 11:17:35 +00:00
|
|
|
* 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.
|
2010-10-10 20:39:00 +00:00
|
|
|
*
|
2005-01-14 11:17:35 +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
|
|
|
|
* GNU General Public License for more details.
|
2010-10-10 20:39:00 +00:00
|
|
|
*
|
2005-01-14 11:17:35 +00:00
|
|
|
* 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 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2005-01-14 11:17:35 +00:00
|
|
|
*/
|
2010-10-10 20:39:00 +00:00
|
|
|
|
2005-01-14 11:17:35 +00:00
|
|
|
#ifndef __PACKET_RMT_COMMON__
|
|
|
|
#define __PACKET_RMT_COMMON__
|
|
|
|
|
2013-05-24 17:06:23 +00:00
|
|
|
/* LCT preferences */
|
2005-01-14 11:17:35 +00:00
|
|
|
|
2013-05-24 17:06:23 +00:00
|
|
|
#define LCT_PREFS_EXT_192_NONE 0
|
|
|
|
#define LCT_PREFS_EXT_192_FLUTE 1
|
|
|
|
|
|
|
|
#define LCT_PREFS_EXT_193_NONE 0
|
|
|
|
#define LCT_PREFS_EXT_193_FLUTE 1
|
|
|
|
|
|
|
|
|
|
|
|
extern const enum_val_t enum_lct_ext_192[];
|
|
|
|
extern const enum_val_t enum_lct_ext_193[];
|
|
|
|
|
|
|
|
/* String tables external references */
|
|
|
|
extern const value_string string_fec_encoding_id[];
|
|
|
|
|
|
|
|
|
|
|
|
/* Structures to exchange data between RMT dissectors */
|
|
|
|
/* ============================= */
|
|
|
|
typedef struct lct_data_exchange
|
|
|
|
{
|
|
|
|
/* inputs */
|
|
|
|
gint ext_192;
|
|
|
|
gint ext_193;
|
|
|
|
|
|
|
|
/* outputs */
|
|
|
|
guint8 codepoint;
|
|
|
|
gboolean is_flute;
|
|
|
|
|
|
|
|
} lct_data_exchange_t;
|
|
|
|
|
|
|
|
typedef struct fec_data_exchange
|
2005-01-14 11:17:35 +00:00
|
|
|
{
|
2013-05-24 17:06:23 +00:00
|
|
|
/* inputs */
|
|
|
|
guint8 encoding_id;
|
2010-10-10 20:39:00 +00:00
|
|
|
|
2013-05-24 17:06:23 +00:00
|
|
|
} fec_data_exchange_t;
|
2010-10-10 20:39:00 +00:00
|
|
|
|
2005-01-14 11:17:35 +00:00
|
|
|
|
|
|
|
/* Common RMT exported functions */
|
|
|
|
/* ============================= */
|
2013-05-24 17:06:23 +00:00
|
|
|
extern int lct_ext_decode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint offset, guint offset_max, lct_data_exchange_t *data_exchange,
|
|
|
|
int hfext, int ettext);
|
2013-05-24 17:24:58 +00:00
|
|
|
extern void fec_decode_ext_fti(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint8 encoding_id);
|
2005-01-14 11:17:35 +00:00
|
|
|
|
2013-05-24 17:06:23 +00:00
|
|
|
extern double rmt_decode_send_rate(guint16 send_rate );
|
2005-01-14 11:17:35 +00:00
|
|
|
|
|
|
|
#endif
|