3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __PACKET_FLEXRAY_H__
11 #define __PACKET_FLEXRAY_H__
13 /* Structure that gets passed between dissectors (containing of frame id, counter cycle and channel). */
14 typedef struct flexray_info
{
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
26 uint32_t flexray_calc_flexrayid(uint16_t bus_id
, uint8_t channel
, uint16_t frame_id
, uint8_t cycle
);
27 uint32_t flexray_flexrayinfo_to_flexrayid(flexray_info_t
*flexray_info
);
28 bool flexray_call_subdissectors(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, flexray_info_t
*flexray_info
, const bool use_heuristics_first
);
29 bool flexray_set_source_and_destination_columns(packet_info
* pinfo
, flexray_info_t
*flexray_info
);
31 #endif /* __PACKET_FLEXRAY_H__ */
34 * Editor modelines - https://www.wireshark.org/tools/modelines.html
39 * indent-tabs-mode: nil
42 * vi: set shiftwidth=4 tabstop=8 expandtab:
43 * :indentSize=4:tabSize=8:noTabs=true: