Skip to content

Commit d0b90ea

Browse files
authored
Merge pull request #4143 from tgross35/backport-can-len8_dlc
[0.2]: Expose `len8_dlc` field of `can_frame` struct.
2 parents 940e7e7 + ceeb0fe commit d0b90ea

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

Lines changed: 2 additions & 1 deletion
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)