Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-flexray.h
blob9c91a6d5cbb0a9a23d07cc3b51c772eb01c92845
1 /* packet-flexray.h
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
8 */
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 {
15 uint16_t id;
16 uint8_t cc;
17 uint8_t ch;
18 uint16_t bus_id;
19 } flexray_info_t;
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
36 * Local variables:
37 * c-basic-offset: 4
38 * tab-width: 8
39 * indent-tabs-mode: nil
40 * End:
42 * vi: set shiftwidth=4 tabstop=8 expandtab:
43 * :indentSize=4:tabSize=8:noTabs=true: