Skip to content

Commit 48bdb18

Browse files
committed
Expose len8_dlc field of can_frame struct on Linux
1 parent aff3132 commit 48bdb18

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
@@ -1580,10 +1580,11 @@ s_no_extra_traits! {
15801580
#[allow(missing_debug_implementations)]
15811581
pub struct can_frame {
15821582
pub can_id: canid_t,
1583+
// FIXME(1.0): this field was renamed to `len` in Linux 5.11
15831584
pub can_dlc: u8,
15841585
__pad: u8,
15851586
__res0: u8,
1586-
__res1: u8,
1587+
pub len8_dlc: u8,
15871588
pub data: [u8; CAN_MAX_DLEN],
15881589
}
15891590

0 commit comments

Comments
 (0)