Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-flexray.h
1 /* packet-flexray.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PACKET_FLEXRAY_H__
11 #define __PACKET_FLEXRAY_H__
12 
13 /* Structure that gets passed between dissectors (containing of frame id, counter cycle and channel). */
14 typedef struct flexray_info {
15  guint16 id;
16  guint8 cc;
17  guint8 ch;
18  guint16 bus_id;
20 
21 #define FLEXRAY_ID_CYCLE_MASK 0x000000FF
22 #define FLEXRAY_ID_FRAME_ID_MASK 0x00FFFF00
23 #define FLEXRAY_ID_CHANNEL_MASK 0x0F000000
24 #define FLEXRAY_ID_BUS_ID_MASK 0xF0000000
25 
26 guint32 flexray_calc_flexrayid(guint16 bus_id, guint8 channel, guint16 frame_id, guint8 cycle);
27 guint32 flexray_flexrayinfo_to_flexrayid(flexray_info_t *flexray_info);
28 gboolean flexray_call_subdissectors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, flexray_info_t *flexray_info, const gboolean use_heuristics_first);
29 gboolean flexray_set_source_and_destination_columns(packet_info* pinfo, flexray_info_t *flexray_info);
30 
31 #endif /* __PACKET_FLEXRAY_H__ */
32 
33 /*
34  * Editor modelines - https://www.wireshark.org/tools/modelines.html
35  *
36  * Local variables:
37  * c-basic-offset: 4
38  * tab-width: 8
39  * indent-tabs-mode: nil
40  * End:
41  *
42  * vi: set shiftwidth=4 tabstop=8 expandtab:
43  * :indentSize=4:tabSize=8:noTabs=true:
44  */
Definition: packet_info.h:44
Definition: proto.h:904
Definition: packet-flexray.h:14
Definition: tvbuff-int.h:35