meh / rust-packet

Network packet handling for Rust.
90 stars 27 forks source link

add little endian support #16

Open Yneth opened 2 years ago

Yneth commented 2 years ago

it was useful to add in my case. I was trying to send packet on macOS and it was failing, even though it worked on linux.

So I've digged into it and found the following: - ip_len and ip_off must be in host byte order

Taken from: https://stackoverflow.com/a/7160206