Skip to content

Commit e0e7680

Browse files
committed
Use the published crates for clock-steering and timestamped-socket
1 parent f0fdfa3 commit e0e7680

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Cargo.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ fixed = "1.24"
4343
libm = "0.2.8"
4444
atomic_refcell = "0.1.13"
4545

46-
clock-steering = { git = "https://github.com/pendulum-project/clock-steering.git", rev = "716a540" }
47-
timestamped-socket = { git = "https://github.com/pendulum-project/timestamped-socket.git", rev = "d0e4ed7", features = ["serde"] }
46+
clock-steering = "0.1.0"
47+
timestamped-socket = "0.1.0"
4848

4949

5050
# our own crates used as dependencies, same version as the workspace version

statime-linux/src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use statime_linux::{
2626
},
2727
};
2828
use timestamped_socket::{
29-
interface::InterfaceIterator,
29+
interface::interfaces,
3030
networkaddress::{EthernetAddress, NetworkAddress},
3131
socket::{InterfaceTimestampMode, Open, Socket},
3232
};
@@ -812,9 +812,10 @@ async fn handle_actions_ethernet(
812812
}
813813

814814
fn get_clock_id() -> Option<[u8; 8]> {
815-
let candidates = InterfaceIterator::new()
815+
let candidates = interfaces()
816816
.unwrap()
817-
.filter_map(|data| data.mac);
817+
.into_iter()
818+
.filter_map(|(_, data)| data.mac());
818819

819820
for mac in candidates {
820821
// Ignore multicast and locally administered mac addresses

0 commit comments

Comments
 (0)