TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags
[wireshark-sm.git] / epan / dissectors / packet-dlt.h
blobe0230dcfd7955160111b17b313b88591f46bb7fe
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
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __PACKET_DLT_H__
14 #define __PACKET_DLT_H__
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;
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
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
48 int32_t
49 dlt_ecu_id_to_int32(const char *ecu_id);
51 #endif /* __PACKET_DLT_H__ */