refactor: update imports to use icmp-socket2

This commit is contained in:
Nils Andreas Svee committed 2026-04-01 12:52:19 +07:00
1 parent 050291990a
commit 9c51853147
3 files changed
+9 -9

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
use crate::MeasurementType;
use icmp_socket::socket::IcmpSocket;
use icmp_socket::{IcmpSocket4, Icmpv4Packet};
use icmp_socket2::socket::IcmpSocket;
use icmp_socket2::{IcmpSocket4, Icmpv4Packet};
use crate::util::RwLockExt;
use log::{debug, warn};
use std::net::{IpAddr, Ipv4Addr};
@@ -135,5 +135,5 @@ pub trait PingSender {
}
}
fn craft_packet(&self, id: u16, seq: u16) -> icmp_socket::packet::Icmpv4Packet;
fn craft_packet(&self, id: u16, seq: u16) -> icmp_socket2::packet::Icmpv4Packet;
}