can: allow can_frame and canfd_frame to share the same flags

pull/294/head
Ayoub Kaanich 2021-05-09 01:01:48 +02:00
parent 899f0dcb79
commit 899e63284e
No known key found for this signature in database
GPG Key ID: CEDEC2B4E39F48FE
1 changed files with 2 additions and 2 deletions

View File

@ -114,14 +114,14 @@ struct can_frame {
__u8 len; __u8 len;
__u8 can_dlc; /* deprecated */ __u8 can_dlc; /* deprecated */
}; };
__u8 __pad; /* padding */ __u8 flags; /* additional flags */
__u8 __res0; /* reserved / padding */ __u8 __res0; /* reserved / padding */
__u8 len8_dlc; /* optional DLC for 8 byte payload length (9 .. 15) */ __u8 len8_dlc; /* optional DLC for 8 byte payload length (9 .. 15) */
__u8 data[CAN_MAX_DLEN] __attribute__((aligned(8))); __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8)));
}; };
/* /*
* defined bits for canfd_frame.flags * defined bits for canfd_frame.flags and can_frame.flags
* *
* The use of struct canfd_frame implies the Extended Data Length (EDL) bit to * The use of struct canfd_frame implies the Extended Data Length (EDL) bit to
* be set in the CAN frame bitstream on the wire. The EDL bit switch turns * be set in the CAN frame bitstream on the wire. The EDL bit switch turns