Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
packet-lin.h
1/* packet-lin.h
2 *
3 * Definitions for LIN
4 * By Dr. Lars Voelker <lars.voelker@technica-engineering.de> / <lars.voelker@bmw.de>
5 * Copyright 2021-2023 Dr. Lars Voelker
6 *
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 */
13
14#ifndef __PACKET_LIN_H__
15#define __PACKET_LIN_H__
16
17#define LIN_DIAG_MASTER_REQUEST_FRAME 0x3c
18#define LIN_DIAG_SLAVE_RESPONSE_FRAME 0x3d
19#define LIN_ID_MASK 0x3f
20
21/* bus_id 0 means ANY Bus */
22struct lin_info {
23 uint32_t id;
24 uint16_t bus_id;
25 uint16_t len;
26};
27
28typedef struct lin_info lin_info_t;
29
30bool lin_set_source_and_destination_columns(packet_info* pinfo, lin_info_t *lininfo);
31
32int dissect_lin_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, lin_info_t *lininfo);
33
34#endif /* __PACKET_LIN_H__ */
35
36/*
37 * Editor modelines - https://www.wireshark.org/tools/modelines.html
38 *
39 * Local variables:
40 * c-basic-offset: 4
41 * tab-width: 8
42 * indent-tabs-mode: nil
43 * End:
44 *
45 * vi: set shiftwidth=4 tabstop=8 expandtab:
46 * :indentSize=4:tabSize=8:noTabs=true:
47 */
Definition packet_info.h:43
Definition proto.h:906
Definition packet-lin.h:22
Definition tvbuff-int.h:35