Merge #433
433: Update nightly r=Dirbaio a=Dirbaio Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
This commit is contained in:
commit
fdef047741
@ -50,7 +50,6 @@ fn ifreq_ioctl(
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct TunTap {
|
pub struct TunTap {
|
||||||
fd: libc::c_int,
|
fd: libc::c_int,
|
||||||
ifreq: ifreq,
|
|
||||||
mtu: usize,
|
mtu: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +87,7 @@ impl TunTap {
|
|||||||
// smoltcp counts the entire Ethernet packet in the MTU, so add the Ethernet header size to it.
|
// smoltcp counts the entire Ethernet packet in the MTU, so add the Ethernet header size to it.
|
||||||
let mtu = ip_mtu + EthernetFrame::<&[u8]>::header_len();
|
let mtu = ip_mtu + EthernetFrame::<&[u8]>::header_len();
|
||||||
|
|
||||||
Ok(TunTap { fd, mtu, ifreq })
|
Ok(TunTap { fd, mtu })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Before upgrading check that everything is available on all tier1 targets here:
|
# Before upgrading check that everything is available on all tier1 targets here:
|
||||||
# https://rust-lang.github.io/rustup-components-history
|
# https://rust-lang.github.io/rustup-components-history
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2021-08-18"
|
channel = "nightly-2021-10-16"
|
||||||
components = [ "rust-src", "rustfmt" ]
|
components = [ "rust-src", "rustfmt" ]
|
||||||
targets = [ "thumbv7em-none-eabi", "thumbv7m-none-eabi", "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf", "wasm32-unknown-unknown" ]
|
targets = [ "thumbv7em-none-eabi", "thumbv7m-none-eabi", "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf", "wasm32-unknown-unknown" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user