Commit 14945b63 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix #3 pinging very slow;

bytes_to_mac() return wrong array of mac.
I use .reverse() to fix this.
parent 591e2223
......@@ -38,5 +38,6 @@ pub fn bytes_to_mac(bytes: u64) -> [u8; 6] {
for i in 0..6 {
address[i] = ((bytes >> (8 * i)) & 0xff) as u8;
}
address.reverse();
address
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment