refactor(icmp): Remove ToNativeEndian usage

This commit is contained in:
Nils Andreas Svee committed 2026-02-21 00:22:57 +07:00
1 parent 55feeafc90
commit ad84618b46
2 files changed
+2 -3

No files matched your search

+2 -2
View File
@@ -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);
-1
View File
@@ -1,4 +1,3 @@
use crate::endian::ToNativeEndian;
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
use crate::time::Time;
use etherparse::icmpv4::TimestampMessage;