Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-uds.h
1/* packet-uds.h
2 * ISO 14229-2 ISO UDS
3 * By Dr. Lars Voelker <[email protected]>
4 * Copyright 2021-2021 Dr. Lars Voelker
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <[email protected]>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef __PACKET_UDS_H__
14#define __PACKET_UDS_H__
15
16#define UDS_SID_MASK 0xBF
17#define UDS_REPLY_MASK 0x40
18
19#define OBD_SERVICES_0x01 0x01
20#define OBD_SERVICES_0x02 0x02
21#define OBD_SERVICES_0x03 0x03
22#define OBD_SERVICES_0x04 0x04
23#define OBD_SERVICES_0x05 0x05
24#define OBD_SERVICES_0x06 0x06
25#define OBD_SERVICES_0x07 0x07
26#define OBD_SERVICES_0x08 0x08
27#define OBD_SERVICES_0x09 0x09
28#define OBD_SERVICES_0x0A 0x0A
29#define OBD_SERVICES_0x0B 0x0B
30#define OBD_SERVICES_0x0C 0x0C
31#define OBD_SERVICES_0x0D 0x0D
32#define OBD_SERVICES_0x0E 0x0E
33#define OBD_SERVICES_0x0F 0x0F
34
35#define UDS_SERVICES_MIN 0x10
36#define UDS_SERVICES_DSC 0x10
37#define UDS_SERVICES_ER 0x11
38#define UDS_SERVICES_CDTCI 0x14
39#define UDS_SERVICES_RDTCI 0x19
40#define UDS_SERVICES_RDBI 0x22
41#define UDS_SERVICES_RMBA 0x23
42#define UDS_SERVICES_RSDBI 0x24
43#define UDS_SERVICES_SA 0x27
44#define UDS_SERVICES_CC 0x28
45#define UDS_SERVICES_ARS 0x29
46#define UDS_SERVICES_RDBPI 0x2A
47#define UDS_SERVICES_DDDI 0x2C
48#define UDS_SERVICES_WDBI 0x2E
49#define UDS_SERVICES_IOCBI 0x2F
50#define UDS_SERVICES_RC 0x31
51#define UDS_SERVICES_RD 0x34
52#define UDS_SERVICES_RU 0x35
53#define UDS_SERVICES_TD 0x36
54#define UDS_SERVICES_RTE 0x37
55#define UDS_SERVICES_RFT 0x38
56#define UDS_SERVICES_WMBA 0x3D
57#define UDS_SERVICES_TP 0x3E
58#define UDS_SERVICES_ERR 0x3F
59#define UDS_SERVICES_SDT 0x84
60#define UDS_SERVICES_CDTCS 0x85
61#define UDS_SERVICES_ROE 0x86
62#define UDS_SERVICES_LC 0x87
63
64typedef struct uds_info {
65 uint32_t id;
66 uint32_t uds_address;
67 bool reply;
68 uint8_t service;
70
71#endif /* __PACKET_UDS_H__ */
72
73/*
74 * Editor modelines - https://www.wireshark.org/tools/modelines.html
75 *
76 * Local variables:
77 * c-basic-offset: 4
78 * tab-width: 8
79 * indent-tabs-mode: nil
80 * End:
81 *
82 * vi: set shiftwidth=4 tabstop=8 expandtab:
83 * :indentSize=4:tabSize=8:noTabs=true:
84 */
Definition packet-uds.h:64