Skip to content

Commit ceeb0fe

Browse files
de-vri-estgross35
authored andcommitted
Expose len8_dlc field of can_frame struct on Linux
(backport <rust-lang#3357>) (cherry picked from commit 48bdb18)
1 parent b07e28d commit ceeb0fe

File tree

1 file changed

+2
-1
lines changed
  • src/unix/linux_like/linux

1 file changed

+2
-1
lines changed

src/unix/linux_like/linux/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1586,10 +1586,11 @@ s_no_extra_traits! {
15861586
#[allow(missing_debug_implementations)]
15871587
pub struct can_frame {
15881588
pub can_id: canid_t,
1589+
// FIXME(1.0): this field was renamed to `len` in Linux 5.11
15891590
pub can_dlc: u8,
15901591
__pad: u8,
15911592
__res0: u8,
1592-
__res1: u8,
1593+
pub len8_dlc: u8,
15931594
pub data: [u8; CAN_MAX_DLEN],
15941595
}
15951596

0 commit comments

Comments
 (0)