Skip to content

Commit

Permalink
add ptp_perout_request
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Aug 22, 2024
1 parent 10823d4 commit e4948dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,24 @@ s_no_extra_traits! {
pub offset_to_priv: ::__u32,
pub hdr: ::tpacket_bd_header_u,
}

pub union __c_anonymous_start_or_phase {
pub start: ptp_clock_time,
pub phase: ptp_clock_time,
}

pub union __c_anonymous_on {
pub on: ptp_clock_time,
pub rsv: [::c_uint; 4]
}

pub struct ptp_perout_request {
pub u1: __c_anonymous_start_or_phase,
pub period: ptp_clock_time,
pub index: ::c_uint,
pub flags: ::c_uint,
pub u2: __c_anonymous_on,
}
}

s! {
Expand Down

0 comments on commit e4948dd

Please sign in to comment.