@@ -1441,12 +1441,26 @@ pub const SO_PEERSEC: ::c_int = 31;
14411441pub const SO_SNDBUFFORCE : :: c_int = 32 ;
14421442pub const SO_RCVBUFFORCE : :: c_int = 33 ;
14431443pub const SO_PASSSEC : :: c_int = 34 ;
1444+ pub const SO_TIMESTAMPNS : :: c_int = 35 ;
1445+ // pub const SO_TIMESTAMPNS_OLD: ::c_int = 35;
14441446pub const SO_MARK : :: c_int = 36 ;
1447+ pub const SO_TIMESTAMPING : :: c_int = 37 ;
1448+ // pub const SO_TIMESTAMPING_OLD: ::c_int = 37;
14451449pub const SO_PROTOCOL : :: c_int = 38 ;
14461450pub const SO_DOMAIN : :: c_int = 39 ;
14471451pub const SO_RXQ_OVFL : :: c_int = 40 ;
14481452pub const SO_PEEK_OFF : :: c_int = 42 ;
14491453pub 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 ;
14501464
14511465pub const IPTOS_ECN_NOTECT : u8 = 0x00 ;
14521466
@@ -2608,6 +2622,23 @@ pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
26082622pub const MODULE_INIT_IGNORE_MODVERSIONS : :: c_uint = 0x0001 ;
26092623pub const MODULE_INIT_IGNORE_VERMAGIC : :: c_uint = 0x0002 ;
26102624
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+
26112642#[ deprecated(
26122643 since = "0.2.55" ,
26132644 note = "ENOATTR is not available on Android; use ENODATA instead"
0 commit comments