diff --git a/src/netlink.rs b/src/netlink.rs index 440e5c3..43e608c 100644 --- a/src/netlink.rs +++ b/src/netlink.rs @@ -231,8 +231,8 @@ impl Netlink { if _type.eq(type_to_look_for) { let qdisc = Qdisc { - ifindex: p.tcm_ifindex as i32, - parent: p.tcm_parent, + ifindex: *p.tcm_ifindex() as i32, + parent: *p.tcm_parent(), }; return Ok(qdisc); diff --git a/src/pinger_icmp_ts.rs b/src/pinger_icmp_ts.rs index 1292694..ad778bb 100644 --- a/src/pinger_icmp_ts.rs +++ b/src/pinger_icmp_ts.rs @@ -1,4 +1,3 @@ -use crate::endian::ToNativeEndian; use crate::pinger::{PingError, PingListener, PingReply, PingSender}; use crate::time::Time; use etherparse::icmpv4::TimestampMessage;