refactor(icmp): Remove ToNativeEndian usage
This commit is contained in:
2 files changed
+2
-3
No files matched your search
+2
-2
@@ -231,8 +231,8 @@ impl Netlink {
|
|||||||
|
|
||||||
if _type.eq(type_to_look_for) {
|
if _type.eq(type_to_look_for) {
|
||||||
let qdisc = Qdisc {
|
let qdisc = Qdisc {
|
||||||
ifindex: p.tcm_ifindex as i32,
|
ifindex: *p.tcm_ifindex() as i32,
|
||||||
parent: p.tcm_parent,
|
parent: *p.tcm_parent(),
|
||||||
};
|
};
|
||||||
|
|
||||||
return Ok(qdisc);
|
return Ok(qdisc);
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
use crate::endian::ToNativeEndian;
|
|
||||||
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
|
use crate::pinger::{PingError, PingListener, PingReply, PingSender};
|
||||||
use crate::time::Time;
|
use crate::time::Time;
|
||||||
use etherparse::icmpv4::TimestampMessage;
|
use etherparse::icmpv4::TimestampMessage;
|
||||||
|
|||||||
Reference in new issue
Block a user