Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-flexray.h
1/* packet-flexray.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <[email protected]>
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). */
14typedef struct flexray_info {
15 uint16_t id;
16 uint8_t cc;
17 uint8_t ch;
18 uint16_t 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
26uint32_t flexray_calc_flexrayid(uint16_t bus_id, uint8_t channel, uint16_t frame_id, uint8_t cycle);
27uint32_t flexray_flexrayinfo_to_flexrayid(flexray_info_t *flexray_info);
28bool flexray_call_subdissectors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, flexray_info_t *flexray_info, const bool use_heuristics_first);
29bool 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:43
Definition proto.h:901
Definition packet-flexray.h:14
Definition tvbuff-int.h:35