From be17e1b363338c1f5bc445ee45067506e2571954 Mon Sep 17 00:00:00 2001 From: Stephan Wolski Date: Sun, 19 Nov 2023 17:08:46 -0500 Subject: [PATCH 1/2] populate `medium` in DriverAdapter struct in IGMP code --- embassy-net/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 6aa476aa0..58310b203 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs @@ -616,9 +616,11 @@ impl Stack { let addr = addr.into(); self.with_mut(|s, i| { + let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address()); let mut smoldev = DriverAdapter { cx: Some(cx), inner: &mut i.device, + medium, }; match s @@ -653,9 +655,11 @@ impl Stack { let addr = addr.into(); self.with_mut(|s, i| { + let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address()); let mut smoldev = DriverAdapter { cx: Some(cx), inner: &mut i.device, + medium, }; match s From b8e9e00b44665edea6f433788a320c1981f96885 Mon Sep 17 00:00:00 2001 From: Stephan Wolski Date: Sun, 19 Nov 2023 17:26:16 -0500 Subject: [PATCH 2/2] add build with `igmp` enabled to ci.sh --- ci.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci.sh b/ci.sh index 78a6eeb8a..aff88353c 100755 --- a/ci.sh +++ b/ci.sh @@ -38,6 +38,7 @@ cargo batch \ --- build --release --manifest-path embassy-sync/Cargo.toml --target thumbv6m-none-eabi --features nightly,defmt \ --- build --release --manifest-path embassy-time/Cargo.toml --target thumbv6m-none-eabi --features nightly,defmt,defmt-timestamp-uptime,tick-hz-32_768,generic-queue-8 \ --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet \ + --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv4,igmp,medium-ethernet \ --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \ --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet,nightly,dhcpv4-hostname \ --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet \