Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-rmt-common.h
1 /* packet-rmt-common.h
2  * Reliable Multicast Transport (RMT)
3  * Common RMT function definitions
4  * Copyright 2005, Stefano Pettini <spettini@users.sourceforge.net>
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12 
13 #ifndef __PACKET_RMT_COMMON__
14 #define __PACKET_RMT_COMMON__
15 
16 #include <epan/params.h>
17 
18 /* LCT preferences */
19 
20 #define LCT_PREFS_EXT_192_NONE 0
21 #define LCT_PREFS_EXT_192_FLUTE 1
22 
23 #define LCT_PREFS_EXT_193_NONE 0
24 #define LCT_PREFS_EXT_193_FLUTE 1
25 
26 
27 extern const enum_val_t enum_lct_ext_192[];
28 extern const enum_val_t enum_lct_ext_193[];
29 
30 /* String tables external references */
31 extern const value_string string_fec_encoding_id[];
32 
33 
34 /* Structures to exchange data between RMT dissectors */
35 /* ============================= */
36 typedef struct lct_data_exchange
37 {
38  /* inputs */
39  gint ext_192;
40  gint ext_193;
41 
42  /* outputs */
43  guint8 codepoint;
44  gboolean is_flute;
45 
47 
48 typedef struct fec_data_exchange
49 {
50  /* inputs */
51  guint8 encoding_id;
52 
54 
55 
56 /* Common RMT exported functions */
57 /* ============================= */
58 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,
59  int hfext, int ettext);
60 extern void fec_decode_ext_fti(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint8 encoding_id);
61 
62 extern double rmt_decode_send_rate(guint16 send_rate );
63 
64 #endif
65 
66 /*
67  * Editor modelines - http://www.wireshark.org/tools/modelines.html
68  *
69  * Local variables:
70  * c-basic-offset: 8
71  * tab-width: 8
72  * indent-tabs-mode: t
73  * End:
74  *
75  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
76  * :indentSize=8:tabSize=8:noTabs=false:
77  */
Definition: packet_info.h:44
Definition: tvbuff-int.h:35
Definition: packet-rmt-common.h:48
Definition: packet-rmt-common.h:36
Definition: params.h:22
Definition: value_string.h:24
Definition: proto.h:759