Skip to content

Commit 951cab5

Browse files
authored
Merge pull request #3357 from de-vri-es/can-frame-len8-dlc
Expose `len8_dlc` field of `can_frame` struct.
2 parents 79afdce + 48bdb18 commit 951cab5

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
@@ -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)