Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
socketcan.h
Go to the documentation of this file.
1
12#ifndef SOCKETCAN_H__
13#define SOCKETCAN_H__
14
15#include <gmodule.h>
16
17#define CAN_MAX_DLEN 8
18#define CANFD_MAX_DLEN 64
19
20typedef struct can_frame {
21 uint32_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */
22 uint8_t can_dlc; /* frame payload length in byte (0 .. CAN_MAX_DLEN) */
23 uint8_t __pad; /* padding */
24 uint8_t __res0; /* reserved / padding */
25 uint8_t __res1; /* reserved / padding */
26 uint8_t data[CAN_MAX_DLEN];
28
29typedef struct canfd_frame {
30 uint32_t can_id; /* 32 bit CAN_ID + EFF flag */
31 uint8_t len; /* frame payload length in byte */
32 uint8_t flags; /* additional flags for CAN FD */
33 uint8_t __res0; /* reserved / padding */
34 uint8_t __res1; /* reserved / padding */
35 uint8_t data[CANFD_MAX_DLEN];
37
38#endif /* SOCKETCAN_H__ */
Definition socketcan.h:20
Definition socketcan.h:29