decreased routes_storage

This commit is contained in:
Niklas Kuhrmeyer 2020-10-30 13:33:59 +01:00
parent 32d5e4dfe1
commit 2f5d26aeaa
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ mod build_info {
pub struct NetStorage { pub struct NetStorage {
ip_addrs: [net::wire::IpCidr; 1], ip_addrs: [net::wire::IpCidr; 1],
neighbor_cache: [Option<(net::wire::IpAddress, net::iface::Neighbor)>; 8], neighbor_cache: [Option<(net::wire::IpAddress, net::iface::Neighbor)>; 8],
routes_storage: [Option<(smoltcp::wire::IpCidr, smoltcp::iface::Route)>; 2], routes_storage: [Option<(smoltcp::wire::IpCidr, smoltcp::iface::Route)>; 1],
} }
static mut NET_STORE: NetStorage = NetStorage { static mut NET_STORE: NetStorage = NetStorage {
@ -90,7 +90,7 @@ static mut NET_STORE: NetStorage = NetStorage {
neighbor_cache: [None; 8], neighbor_cache: [None; 8],
routes_storage: [None; 2], routes_storage: [None; 1],
}; };
const SCALE: f32 = ((1 << 15) - 1) as f32; const SCALE: f32 = ((1 << 15) - 1) as f32;