meh / rust-tun

TUN device creation and handling.
343 stars 136 forks source link

fix: properly handle endianness for big-endian targets #25

Closed eycorsican closed 3 years ago

eycorsican commented 3 years ago

The fix only consider mips/mips64 as I don't have access to other platforms that I can test on.

LuoZijun commented 3 years ago

@eycorsican The xx.to_be_bytes() function may be helpful to you.