Thibaut Vandervelden
533f103a95
pass the now time when creating the iface
...
Signed-off-by: Thibaut Vandervelden <thvdveld@vub.be>
2023-06-12 16:31:38 +02:00
Thibaut Vandervelden
099f5f7c2a
Don't use Option for neighbor cache anymore
2023-04-04 18:54:33 +02:00
Ruben De Smet
dc3c44410b
Remove extern crate calls
2023-03-07 11:07:45 +01:00
Dario Nieuwenhuis
5740b76574
iface: remove builder.
2023-01-19 14:43:15 +01:00
Dario Nieuwenhuis
050731b519
iface: remove all uses of crate::{Error, Result};
2023-01-14 21:57:36 +01:00
Dario Nieuwenhuis
3a080d818b
Clippy fixes
2023-01-02 00:20:05 +01:00
Dario Nieuwenhuis
4eb49b808a
iface: use heapless LinearMap for neighbor cache.
2022-12-23 18:13:03 +01:00
Dario Nieuwenhuis
9beb57a992
iface: use heapless Vec for routes.
...
Lookup is O(n) now. However, it previously did 32 (or 128 for ipv6!)
map lookups. Since the route table typically doesn't have that many
routes, the new code is likely faster even if it's O(n).
2022-12-23 18:13:03 +01:00
Davide Della Giustina
4ddb96b1b2
Increased max number of IPs from 4 to 5 because some test use 5
2022-12-20 14:04:24 +00:00
Davide Della Giustina
aec718a08f
Fix clippy and rustfmt errors
2022-12-20 13:21:28 +00:00
Davide Della Giustina
8cf7625cc2
ip_addrs field of an interface is now a heapless::Vec (one test still failing)
2022-12-20 12:02:10 +00:00
Benjamin Brittain
35cea49b8a
Adds DNS query type to example
2022-09-22 10:10:05 -04:00
Dario Nieuwenhuis
9e18ca127e
socket_set: add get_mut, make get immutable.
2022-06-06 02:26:45 +02:00
Dario Nieuwenhuis
d703a66d1d
iface: borrow the device instead of owning it.
2022-06-06 02:26:45 +02:00
Dario Nieuwenhuis
b71ffcb6cc
iface: borrow the SocketSet instead of owning.
2022-06-06 01:14:53 +02:00
Dario Nieuwenhuis
43329e696e
socket/dns: add own error enums for public API.
2022-05-20 23:36:36 +02:00
Dario Nieuwenhuis
72a9ee46ce
socket: reorganize module structure, with one module per protocol.
2022-05-20 02:18:00 +02:00
Dario Nieuwenhuis
ea0d4d7f46
dns: allow specifying name in human-friendly format.
2022-05-19 21:36:13 +02:00
Dario Nieuwenhuis
ce1f0169f8
dns: use Vec for server address list.
2022-05-19 19:54:38 +02:00
Dario Nieuwenhuis
da1a2b2df0
socket: add DNS
2022-05-19 19:13:57 +02:00