| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-dlt.h
1/* packet-dlt.c
2 * DLT Dissector (Header file)
3 * By Dr. Lars Voelker <lars.voelker@technica-engineering.de>
4 * Copyright 2013-2022 Dr. Lars Voelker
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef __PACKET_DLT_H__
14#define __PACKET_DLT_H__
15
16 typedef struct dlt_info {
17 const char *ecu_id;
18 uint32_t message_id;
19 bool little_endian;
20 uint8_t message_type;
21 uint8_t message_type_info_comb;
22} dlt_info_t;
23
24#define DLT_MSG_TYPE_LOG_MSG 0x0
25#define DLT_MSG_TYPE_TRACE_MSG 0x1
26#define DLT_MSG_TYPE_NETWORK_MSG 0x2
27#define DLT_MSG_TYPE_CTRL_MSG 0x3
28
29#define DLT_MSG_TYPE_INFO_LOG_FATAL 0x10
30#define DLT_MSG_TYPE_INFO_LOG_ERROR 0x20
31#define DLT_MSG_TYPE_INFO_LOG_WARN 0x30
32#define DLT_MSG_TYPE_INFO_LOG_INFO 0x40
33#define DLT_MSG_TYPE_INFO_LOG_DEBUG 0x50
34#define DLT_MSG_TYPE_INFO_LOG_VERBOSE 0x60
35#define DLT_MSG_TYPE_INFO_TRACE_VAR 0x12
36#define DLT_MSG_TYPE_INFO_TRACE_FUNC_IN 0x22
37#define DLT_MSG_TYPE_INFO_TRACE_FUNC_OUT 0x32
38#define DLT_MSG_TYPE_INFO_TRACE_STATE 0x42
39#define DLT_MSG_TYPE_INFO_TRACE_VFB 0x52
40#define DLT_MSG_TYPE_INFO_NET_IPC 0x14
41#define DLT_MSG_TYPE_INFO_NET_CAN 0x24
42#define DLT_MSG_TYPE_INFO_NET_FLEXRAY 0x34
43#define DLT_MSG_TYPE_INFO_NET_MOST 0x46
44#define DLT_MSG_TYPE_INFO_CTRL_REQ 0x16
45#define DLT_MSG_TYPE_INFO_CTRL_RES 0x26
46#define DLT_MSG_TYPE_INFO_CTRL_TIME 0x36
47
48int32_t
49dlt_ecu_id_to_int32(const char *ecu_id);
50
51#endif /* __PACKET_DLT_H__ */
dlt_info
Definition packet-dlt.h:16