File tree Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ fn main() {
285
285
cfg. header ( "linux/seccomp.h" ) ;
286
286
cfg. header ( "linux/if_ether.h" ) ;
287
287
cfg. header ( "linux/if_tun.h" ) ;
288
+ cfg. header ( "linux/net_tstamp.h" ) ;
288
289
// DCCP support
289
290
if !uclibc && !musl && !emscripten {
290
291
cfg. header ( "linux/dccp.h" ) ;
Original file line number Diff line number Diff line change @@ -397,8 +397,6 @@ pub const SO_PASSSEC: ::c_int = 34;
397
397
pub const SO_TIMESTAMPNS : :: c_int = 35 ;
398
398
pub const SCM_TIMESTAMPNS : :: c_int = SO_TIMESTAMPNS ;
399
399
pub const SO_MARK : :: c_int = 36 ;
400
- pub const SO_TIMESTAMPING : :: c_int = 37 ;
401
- pub const SCM_TIMESTAMPING : :: c_int = SO_TIMESTAMPING ;
402
400
pub const SO_RXQ_OVFL : :: c_int = 40 ;
403
401
pub const SO_WIFI_STATUS : :: c_int = 41 ;
404
402
pub const SCM_WIFI_STATUS : :: c_int = SO_WIFI_STATUS ;
Original file line number Diff line number Diff line change @@ -1672,10 +1672,25 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02;
1672
1672
pub const ARPD_FLUSH : :: c_ushort = 0x03 ;
1673
1673
pub const ATF_MAGIC : :: c_int = 0x80 ;
1674
1674
1675
+ #[ cfg( not( target_arch = "sparc64" ) ) ]
1676
+ pub const SO_TIMESTAMPING : :: c_int = 37 ;
1677
+ #[ cfg( target_arch = "sparc64" ) ]
1678
+ pub const SO_TIMESTAMPING : :: c_int = 35 ;
1679
+ pub const SCM_TIMESTAMPING : :: c_int = SO_TIMESTAMPING ;
1680
+
1675
1681
// linux/module.h
1676
1682
pub const MODULE_INIT_IGNORE_MODVERSIONS : :: c_uint = 0x0001 ;
1677
1683
pub const MODULE_INIT_IGNORE_VERMAGIC : :: c_uint = 0x0002 ;
1678
1684
1685
+ // linux/net_tstamp.h
1686
+ pub const SOF_TIMESTAMPING_TX_HARDWARE : :: c_uint = 1 << 0 ;
1687
+ pub const SOF_TIMESTAMPING_TX_SOFTWARE : :: c_uint = 1 << 1 ;
1688
+ pub const SOF_TIMESTAMPING_RX_HARDWARE : :: c_uint = 1 << 2 ;
1689
+ pub const SOF_TIMESTAMPING_RX_SOFTWARE : :: c_uint = 1 << 3 ;
1690
+ pub const SOF_TIMESTAMPING_SOFTWARE : :: c_uint = 1 << 4 ;
1691
+ pub const SOF_TIMESTAMPING_SYS_HARDWARE : :: c_uint = 1 << 5 ;
1692
+ pub const SOF_TIMESTAMPING_RAW_HARDWARE : :: c_uint = 1 << 6 ;
1693
+
1679
1694
f ! {
1680
1695
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
1681
1696
for slot in cpuset. bits. iter_mut( ) {
Original file line number Diff line number Diff line change @@ -284,8 +284,6 @@ pub const SO_PASSSEC: ::c_int = 34;
284
284
pub const SO_TIMESTAMPNS : :: c_int = 35 ;
285
285
pub const SCM_TIMESTAMPNS : :: c_int = SO_TIMESTAMPNS ;
286
286
pub const SO_MARK : :: c_int = 36 ;
287
- pub const SO_TIMESTAMPING : :: c_int = 37 ;
288
- pub const SCM_TIMESTAMPING : :: c_int = SO_TIMESTAMPING ;
289
287
pub const SO_PROTOCOL : :: c_int = 38 ;
290
288
pub const SO_DOMAIN : :: c_int = 39 ;
291
289
pub const SO_RXQ_OVFL : :: c_int = 40 ;
Original file line number Diff line number Diff line change @@ -271,8 +271,6 @@ pub const SO_PASSSEC: ::c_int = 34;
271
271
pub const SO_TIMESTAMPNS : :: c_int = 35 ;
272
272
pub const SCM_TIMESTAMPNS : :: c_int = SO_TIMESTAMPNS ;
273
273
pub const SO_MARK : :: c_int = 36 ;
274
- pub const SO_TIMESTAMPING : :: c_int = 37 ;
275
- pub const SCM_TIMESTAMPING : :: c_int = SO_TIMESTAMPING ;
276
274
pub const SO_PROTOCOL : :: c_int = 38 ;
277
275
pub const SO_DOMAIN : :: c_int = 39 ;
278
276
pub const SO_RXQ_OVFL : :: c_int = 40 ;
Original file line number Diff line number Diff line change @@ -371,8 +371,6 @@ pub const SO_PASSSEC: ::c_int = 34;
371
371
pub const SO_TIMESTAMPNS : :: c_int = 35 ;
372
372
pub const SCM_TIMESTAMPNS : :: c_int = SO_TIMESTAMPNS ;
373
373
pub const SO_MARK : :: c_int = 36 ;
374
- pub const SO_TIMESTAMPING : :: c_int = 37 ;
375
- pub const SCM_TIMESTAMPING : :: c_int = SO_TIMESTAMPING ;
376
374
pub const SO_PROTOCOL : :: c_int = 38 ;
377
375
pub const SO_DOMAIN : :: c_int = 39 ;
378
376
pub const SO_RXQ_OVFL : :: c_int = 40 ;
You can’t perform that action at this time.
0 commit comments