Skip to content

Commit e4948dd

Browse files
committed
add ptp_perout_request
1 parent 10823d4 commit e4948dd

File tree

1 file changed

+18
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+18
-0
lines changed

src/unix/linux_like/linux/mod.rs

+18
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,24 @@ s_no_extra_traits! {
12451245
pub offset_to_priv: ::__u32,
12461246
pub hdr: ::tpacket_bd_header_u,
12471247
}
1248+
1249+
pub union __c_anonymous_start_or_phase {
1250+
pub start: ptp_clock_time,
1251+
pub phase: ptp_clock_time,
1252+
}
1253+
1254+
pub union __c_anonymous_on {
1255+
pub on: ptp_clock_time,
1256+
pub rsv: [::c_uint; 4]
1257+
}
1258+
1259+
pub struct ptp_perout_request {
1260+
pub u1: __c_anonymous_start_or_phase,
1261+
pub period: ptp_clock_time,
1262+
pub index: ::c_uint,
1263+
pub flags: ::c_uint,
1264+
pub u2: __c_anonymous_on,
1265+
}
12481266
}
12491267

12501268
s! {

0 commit comments

Comments
 (0)