epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / packet-rmt-common.h
bloba209c335bdd1cbf4ff0aa9cd2b30f7183aab27c3
1 /* packet-rmt-common.h
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>
18 /* LCT preferences */
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
42 /* inputs */
43 int ext_192;
44 int ext_193;
45 bool is_atsc3;
47 /* outputs */
48 uint8_t codepoint;
49 bool is_flute;
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
56 /* inputs */
57 uint8_t encoding_id;
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 );
70 #endif
73 * Editor modelines - https://www.wireshark.org/tools/modelines.html
75 * Local variables:
76 * c-basic-offset: 8
77 * tab-width: 8
78 * indent-tabs-mode: t
79 * End:
81 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
82 * :indentSize=8:tabSize=8:noTabs=false: