2 * Reliable Multicast Transport (RMT)
3 * Common RMT function definitions
4 * Copyright 2005, Stefano Pettini <spettini@users.sourceforge.net>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __PACKET_RMT_COMMON__
14 #define __PACKET_RMT_COMMON__
16 #include <epan/params.h>
20 #define LCT_PREFS_EXT_192_NONE 0
21 #define LCT_PREFS_EXT_192_FLUTE 1
23 #define LCT_PREFS_EXT_193_NONE 0
24 #define LCT_PREFS_EXT_193_FLUTE 1
26 #define LCT_ATSC3_MODE_DISABLED 0
27 #define LCT_ATSC3_MODE_AUTO 1
28 #define LCT_ATSC3_MODE_FORCE 2
30 extern const enum_val_t enum_lct_ext_192
[];
31 extern const enum_val_t enum_lct_ext_193
[];
32 extern const enum_val_t enum_lct_atsc3_mode
[];
34 /* String tables external references */
35 extern const value_string string_fec_encoding_id
[];
38 /* Structures to exchange data between RMT dissectors */
39 /* ============================= */
40 typedef struct lct_data_exchange
50 bool is_sp
; /* is Source Packet? Source Packet Indicator is defined in RFC 5775 */
52 } lct_data_exchange_t
;
54 typedef struct fec_data_exchange
59 } fec_data_exchange_t
;
62 /* Common RMT exported functions */
63 /* ============================= */
64 extern int lct_ext_decode(proto_tree
*tree
, tvbuff_t
*tvb
, packet_info
*pinfo
, unsigned offset
, unsigned offset_max
, lct_data_exchange_t
*data_exchange
,
65 int hfext
, int ettext
);
66 extern void fec_decode_ext_fti(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, uint8_t encoding_id
);
68 extern double rmt_decode_send_rate(uint16_t send_rate
);
73 * Editor modelines - https://www.wireshark.org/tools/modelines.html
81 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
82 * :indentSize=8:tabSize=8:noTabs=false: