Ruben De Smet
f81ee103bf
Allow ethernet and 802.15.4 to coexist
...
Co-authored-by: Thibaut Vandervelden <thvdveld@vub.be>
2023-07-28 15:11:24 +02:00
xoviat
2cdd593290
Merge branch 'main' of https://github.com/embassy-rs/embassy into mac
2023-07-21 16:24:48 -05:00
ivmarkov
98576c17b6
Fix multicast support ( #1670 )
2023-07-18 17:35:20 +02:00
bjoernQ
6bf4717b0a
cfg-gate unapply_config_v4
2023-07-18 10:57:05 +02:00
bjoernQ
f581831b86
Make dual-stack work in embassy-net
2023-07-18 10:39:29 +02:00
xoviat
0b63af3313
wpan: prepare net impl.
2023-07-15 19:02:04 -05:00
Roy Buitenhuis
151557fec3
Re-export smoltcp::wire::IpEndpoint
2023-07-07 16:38:56 +02:00
Dario Nieuwenhuis
6eac49186d
Release embassy-net v0.1
2023-06-29 19:55:32 +02:00
Dániel Buga
59f829c6cc
Make StackResources::new() const
2023-06-28 15:03:57 +02:00
Dario Nieuwenhuis
64cba950e5
Update smoltcp.
2023-06-26 11:43:28 +02:00
Ruben De Smet
2455fd4dbe
net: Add documentation to new Config system
2023-06-07 13:18:19 +02:00
Ruben De Smet
352f0b6c38
net: Support dual stack IP
2023-06-07 13:18:19 +02:00
Ruben De Smet
ae1dedc059
net: proto-ipv6 in is_config_up
2023-06-06 17:58:46 +02:00
Ruben De Smet
18578fd15f
net: Allow a combined use of IPv4 and IPv6 DNS servers
2023-06-06 17:58:45 +02:00
Ruben De Smet
d7f674e410
net: Allow setting an IPv6 in the stack
2023-06-06 17:58:45 +02:00
Ruben De Smet
e871324bde
net: StaticV4 config behind proto-ipv4
2023-06-06 17:58:45 +02:00
Ruben De Smet
54bab33c73
Rename StaticConfig to StaticConfigV4
2023-06-06 17:04:21 +02:00
Dario Nieuwenhuis
9f7392474b
Update Rust nightly.
2023-05-19 17:12:39 +02:00
Dario Nieuwenhuis
d07821d851
net: document crate.
2023-05-15 00:56:09 +02:00
Dario Nieuwenhuis
62857bdb2d
net: reexport UDP PacketMetadata under the udp module.
2023-05-15 00:55:34 +02:00
Dario Nieuwenhuis
26d7610554
net: do not use smoltcp Instant/Duration in public API.
2023-05-15 00:53:30 +02:00
Dario Nieuwenhuis
2d65373f63
Remove unused feature(type_alias_impl_trait)
.
2023-05-14 23:44:53 +02:00
Roy Buitenhuis
a2ac1eed1b
Add extra feature flags to fix build without dhcp.
2023-04-18 22:11:15 +02:00
Leon Camus
e484cb1b87
refactor: Multicast method modifiers on stack to public
...
revert: udp.rs
2023-03-08 12:37:00 +01:00
Leon Camus
b62e3e1d47
lint: Cargo fmt
2023-03-07 23:40:31 +01:00
Leon Camus
c22218c72e
feat: Add multicast to udp socket
2023-03-06 18:43:37 +01:00
kbleeke
d5f88e578c
embassy-net: DNS resolver detects when name is just an IP address and returns immediately
2023-02-25 21:52:15 +01:00
Ulf Lilleengen
a7d3ef9122
scope dns operations within a cfged block
2023-02-10 19:00:00 +01:00
Ulf Lilleengen
32c3725631
add waker for DNS slots
2023-02-10 18:44:51 +01:00
Ulf Lilleengen
48dff04d64
Bump max queries
2023-02-10 18:34:21 +01:00
Ulf Lilleengen
472473d8c1
Create slice using ::Owned
2023-02-10 18:32:35 +01:00
Ulf Lilleengen
6e68353a93
attempt removing option
2023-02-10 18:30:17 +01:00
Ulf Lilleengen
7ae47cb1d8
Expose api on Stack and add doc
...
Make it work with smoltcp 0.9
2023-02-10 18:20:50 +01:00
Ulf Lilleengen
cd440a49d6
Rewrite to use a single socket
2023-02-10 17:46:08 +01:00
Ulf Lilleengen
9cfea693ed
Add DNS socket to embassy-net
2023-02-10 17:45:03 +01:00
Dario Nieuwenhuis
5edb3052e6
net: reexport driver crate.
2023-02-08 17:52:02 +01:00
Dario Nieuwenhuis
78c2c1709b
net: update smoltcp.
2023-01-19 14:44:01 +01:00
Dario Nieuwenhuis
570ffab670
net: poll returning false is not an error. No need to repoll.
2023-01-19 14:44:01 +01:00
Paweł Jan Czochański
8f4fae9b36
Add smoltcp dhcp socket configuration
2023-01-19 14:44:01 +01:00
Paweł Jan Czochański
2eae12b7f1
Update smoltcp to the newest master
2023-01-19 14:44:01 +01:00
Dario Nieuwenhuis
4a4b593694
net; allow changing MAC addr at runtime.
2022-12-27 01:04:55 +01:00
Dario Nieuwenhuis
1f033d509a
net: split driver trait to a separate crate.
2022-12-26 04:49:08 +01:00
Dario Nieuwenhuis
aaaf5f23a8
net: move stack into lib.rs
2022-12-13 16:18:39 +01:00
Dario Nieuwenhuis
ac74613b5a
net: remove packet pool.
...
The pool was prone to deadlocks, especially due to having a single pool
for rx+tx. If the pool got full with rx'd packets it would deadlock because
processing a rx packet requires doing another allocation on the pool, for
the possibly tx'd response, before deallocating the rx'd packet.
This also allows Device impls to allocate the packet memory in a particular
RAM kind, if needed for example to do DMA.
The `Device` trait is now token-based, like smoltcp's. In the end, this
is better because it allows callers to manage memory however they want (including
with a pool if they want to).
2022-12-13 16:18:39 +01:00
Dario Nieuwenhuis
1e2fb0459d
Switch to async-fn-in-trait
2022-11-25 21:02:06 +01:00
Dario Nieuwenhuis
897b72c872
Update Rust nightly.
...
Removes feature(generic_associated_types)
2022-09-22 16:38:14 +02:00
Dario Nieuwenhuis
464ae67108
net: feature-gate nightly-only async traits to allow building on stable.
2022-08-30 19:43:32 +02:00
Artur Kowalski
d5ab0d3ebb
Add UDP socket support
2022-08-10 19:40:35 +02:00
Dario Nieuwenhuis
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
Ulf Lilleengen
39cffdd123
Add reexport for ipv6 types with proto-ipv6
2022-06-01 13:48:09 +02:00