File tree 1 file changed +3
-3
lines changed
src/unix/linux_like/linux
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 838
838
pub struct ptp_sys_offset_extended {
839
839
pub n_samples: :: c_uint,
840
840
pub rsv: [ :: c_uint; 3 ] ,
841
- pub ts: [ [ ptp_clock_time; 3 ] ; 25 ] ,
841
+ pub ts: [ [ ptp_clock_time; 3 ] ; PTP_MAX_SAMPLES as usize ] ,
842
842
}
843
843
844
844
pub struct ptp_sys_offset_precise {
@@ -1256,7 +1256,7 @@ s_no_extra_traits! {
1256
1256
pub struct ptp_sys_offset {
1257
1257
pub n_samples: :: c_uint,
1258
1258
pub rsv: [ :: c_uint; 3 ] ,
1259
- pub ts: [ ptp_clock_time; 51 ] ,
1259
+ pub ts: [ ptp_clock_time; 2 * PTP_MAX_SAMPLES as usize + 1 ] ,
1260
1260
}
1261
1261
1262
1262
pub struct ptp_pin_desc {
@@ -4243,7 +4243,7 @@ pub const HWTSTAMP_FILTER_PTP_V2_DELAY_REQ: ::c_uint = 14;
4243
4243
pub const HWTSTAMP_FILTER_NTP_ALL : :: c_uint = 15 ;
4244
4244
4245
4245
// linux/ptp_clock.h
4246
- pub const PTP_MAX_SAMPLES : :: c_uint = 25 ;
4246
+ pub const PTP_MAX_SAMPLES : :: c_uint = 25 ; // Maximum allowed offset measurement samples.
4247
4247
4248
4248
cfg_if ! {
4249
4249
if #[ cfg( any( target_arch = "powerpc" , target_arch = "powerpc64" , target_arch = "sparc64" ) ) ] {
You can’t perform that action at this time.
0 commit comments