diff --git a/Cargo.toml b/Cargo.toml index a505a214..2f3e266b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,9 @@ license = "0BSD" # ensure that the correct features are enabled. autoexamples = false +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } + [dependencies] managed = { version = "0.8", default-features = false, features = ["map"] } byteorder = { version = "1.0", default-features = false } diff --git a/src/phy/sys/linux.rs b/src/phy/sys/linux.rs index c73eb4f5..6c3388e3 100644 --- a/src/phy/sys/linux.rs +++ b/src/phy/sys/linux.rs @@ -9,12 +9,12 @@ pub const ETH_P_IEEE802154: libc::c_short = 0x00F6; // https://github.com/golang/sys/blob/master/unix/zerrors_linux_.go pub const TUNSETIFF: libc::c_ulong = if cfg!(any( target_arch = "mips", + all(target_arch = "mips", target_endian = "little"), target_arch = "mips64", - target_arch = "mips64el", - target_arch = "mipsel", + all(target_arch = "mips64", target_endian = "little"), target_arch = "powerpc", target_arch = "powerpc64", - target_arch = "powerpc64le", + all(target_arch = "powerpc64", target_endian = "little"), target_arch = "sparc64" )) { 0x800454CA