refactor: update imports to use icmp-socket2
This commit is contained in:
3 files changed
+9
-9
No files matched your search
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
use crate::MeasurementType;
|
use crate::MeasurementType;
|
||||||
use icmp_socket::socket::IcmpSocket;
|
use icmp_socket2::socket::IcmpSocket;
|
||||||
use icmp_socket::{IcmpSocket4, Icmpv4Packet};
|
use icmp_socket2::{IcmpSocket4, Icmpv4Packet};
|
||||||
use crate::util::RwLockExt;
|
use crate::util::RwLockExt;
|
||||||
use log::{debug, warn};
|
use log::{debug, warn};
|
||||||
use std::net::{IpAddr, Ipv4Addr};
|
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;
|
||||||
}
|
}
|
||||||
+3
-3
@@ -3,9 +3,9 @@ use std::time::Instant;
|
|||||||
|
|
||||||
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
|
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
|
||||||
use crate::time::Time;
|
use crate::time::Time;
|
||||||
use icmp_socket::Icmpv4Message;
|
use icmp_socket2::Icmpv4Message;
|
||||||
use icmp_socket::Icmpv4Packet;
|
use icmp_socket2::Icmpv4Packet;
|
||||||
use icmp_socket::packet::WithEchoRequest;
|
use icmp_socket2::packet::WithEchoRequest;
|
||||||
use rustix::thread::ClockId;
|
use rustix::thread::ClockId;
|
||||||
|
|
||||||
pub struct PingerICMPEchoListener {}
|
pub struct PingerICMPEchoListener {}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
|
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
|
||||||
use crate::time::Time;
|
use crate::time::Time;
|
||||||
use icmp_socket::packet::WithTimestampRequest;
|
use icmp_socket2::packet::WithTimestampRequest;
|
||||||
use icmp_socket::Icmpv4Message;
|
use icmp_socket2::Icmpv4Message;
|
||||||
use icmp_socket::Icmpv4Packet;
|
use icmp_socket2::Icmpv4Packet;
|
||||||
use rustix::thread::ClockId;
|
use rustix::thread::ClockId;
|
||||||
use std::net::IpAddr;
|
use std::net::IpAddr;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|||||||
Reference in new issue
Block a user