@@ -1441,12 +1441,26 @@ pub const SO_PEERSEC: ::c_int = 31;
1441
1441
pub const SO_SNDBUFFORCE : :: c_int = 32 ;
1442
1442
pub const SO_RCVBUFFORCE : :: c_int = 33 ;
1443
1443
pub const SO_PASSSEC : :: c_int = 34 ;
1444
+ pub const SO_TIMESTAMPNS : :: c_int = 35 ;
1445
+ // pub const SO_TIMESTAMPNS_OLD: ::c_int = 35;
1444
1446
pub const SO_MARK : :: c_int = 36 ;
1447
+ pub const SO_TIMESTAMPING : :: c_int = 37 ;
1448
+ // pub const SO_TIMESTAMPING_OLD: ::c_int = 37;
1445
1449
pub const SO_PROTOCOL : :: c_int = 38 ;
1446
1450
pub const SO_DOMAIN : :: c_int = 39 ;
1447
1451
pub const SO_RXQ_OVFL : :: c_int = 40 ;
1448
1452
pub const SO_PEEK_OFF : :: c_int = 42 ;
1449
1453
pub const SO_BUSY_POLL : :: c_int = 46 ;
1454
+ pub const SCM_TIMESTAMPING_OPT_STATS : :: c_int = 54 ;
1455
+ pub const SCM_TIMESTAMPING_PKTINFO : :: c_int = 58 ;
1456
+ pub const SO_TIMESTAMP_NEW : :: c_int = 63 ;
1457
+ pub const SO_TIMESTAMPNS_NEW : :: c_int = 64 ;
1458
+ pub const SO_TIMESTAMPING_NEW : :: c_int = 65 ;
1459
+
1460
+ // Defined in unix/linux_like/mod.rs
1461
+ // pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
1462
+ pub const SCM_TIMESTAMPNS : :: c_int = SO_TIMESTAMPNS ;
1463
+ pub const SCM_TIMESTAMPING : :: c_int = SO_TIMESTAMPING ;
1450
1464
1451
1465
pub const IPTOS_ECN_NOTECT : u8 = 0x00 ;
1452
1466
@@ -2608,6 +2622,23 @@ pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
2608
2622
pub const MODULE_INIT_IGNORE_MODVERSIONS : :: c_uint = 0x0001 ;
2609
2623
pub const MODULE_INIT_IGNORE_VERMAGIC : :: c_uint = 0x0002 ;
2610
2624
2625
+ // linux/net_tstamp.h
2626
+ pub const SOF_TIMESTAMPING_TX_HARDWARE : :: c_uint = 1 << 0 ;
2627
+ pub const SOF_TIMESTAMPING_TX_SOFTWARE : :: c_uint = 1 << 1 ;
2628
+ pub const SOF_TIMESTAMPING_RX_HARDWARE : :: c_uint = 1 << 2 ;
2629
+ pub const SOF_TIMESTAMPING_RX_SOFTWARE : :: c_uint = 1 << 3 ;
2630
+ pub const SOF_TIMESTAMPING_SOFTWARE : :: c_uint = 1 << 4 ;
2631
+ pub const SOF_TIMESTAMPING_SYS_HARDWARE : :: c_uint = 1 << 5 ;
2632
+ pub const SOF_TIMESTAMPING_RAW_HARDWARE : :: c_uint = 1 << 6 ;
2633
+ pub const SOF_TIMESTAMPING_OPT_ID : :: c_uint = 1 << 7 ;
2634
+ pub const SOF_TIMESTAMPING_TX_SCHED : :: c_uint = 1 << 8 ;
2635
+ pub const SOF_TIMESTAMPING_TX_ACK : :: c_uint = 1 << 9 ;
2636
+ pub const SOF_TIMESTAMPING_OPT_CMSG : :: c_uint = 1 << 10 ;
2637
+ pub const SOF_TIMESTAMPING_OPT_TSONLY : :: c_uint = 1 << 11 ;
2638
+ pub const SOF_TIMESTAMPING_OPT_STATS : :: c_uint = 1 << 12 ;
2639
+ pub const SOF_TIMESTAMPING_OPT_PKTINFO : :: c_uint = 1 << 13 ;
2640
+ pub const SOF_TIMESTAMPING_OPT_TX_SWHW : :: c_uint = 1 << 14 ;
2641
+
2611
2642
#[ deprecated(
2612
2643
since = "0.2.55" ,
2613
2644
note = "ENOATTR is not available on Android; use ENODATA instead"
0 commit comments