From 19ea898c3117bc42d812f96d3d626069c95116a5 Mon Sep 17 00:00:00 2001 From: occheung Date: Fri, 18 Dec 2020 17:38:58 +0800 Subject: [PATCH] nal: migrate to tls --- src/net_store.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/net_store.rs diff --git a/src/net_store.rs b/src/net_store.rs new file mode 100644 index 0000000..9ea01fb --- /dev/null +++ b/src/net_store.rs @@ -0,0 +1,7 @@ +use smoltcp as net; + +pub struct NetStorage { + pub ip_addrs: [net::wire::IpCidr; 1], + pub neighbor_cache: [Option<(net::wire::IpAddress, net::iface::Neighbor)>; 8], + pub routes_cache: [Option<(net::wire::IpCidr, net::iface::Route)>; 8], +}