From ad84618b464f74ca05a71116eb354723057b7104 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Sat, 21 Feb 2026 00:18:33 +0700 Subject: [PATCH] refactor(icmp): Remove ToNativeEndian usage --- src/netlink.rs | 4 ++-- src/pinger_icmp_ts.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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;