Skip to content

Commit

Permalink
Merge pull request #4143 from tgross35/backport-can-len8_dlc
Browse files Browse the repository at this point in the history
[0.2]: Expose `len8_dlc` field of `can_frame` struct.
  • Loading branch information
tgross35 authored Nov 25, 2024
2 parents 940e7e7 + ceeb0fe commit d0b90ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1586,10 +1586,11 @@ s_no_extra_traits! {
#[allow(missing_debug_implementations)]
pub struct can_frame {
pub can_id: canid_t,
// FIXME(1.0): this field was renamed to `len` in Linux 5.11
pub can_dlc: u8,
__pad: u8,
__res0: u8,
__res1: u8,
pub len8_dlc: u8,
pub data: [u8; CAN_MAX_DLEN],
}

Expand Down

0 comments on commit d0b90ea

Please sign in to comment.