From 28b1e0a98baaaacb72fc44255a9fdad7af35763b Mon Sep 17 00:00:00 2001 From: Frostie314159 Date: Tue, 29 Oct 2024 23:05:50 +0100 Subject: [PATCH 1/2] Reexported some smoltcp types for raw socket. --- embassy-net/src/raw.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-net/src/raw.rs b/embassy-net/src/raw.rs index ace325a46..0169606d5 100644 --- a/embassy-net/src/raw.rs +++ b/embassy-net/src/raw.rs @@ -5,10 +5,10 @@ use core::mem; use core::task::{Context, Poll}; use embassy_net_driver::Driver; -use smoltcp::iface::{Interface, SocketHandle}; +pub use smoltcp::iface::{Interface, SocketHandle}; use smoltcp::socket::raw; pub use smoltcp::socket::raw::PacketMetadata; -use smoltcp::wire::{IpProtocol, IpVersion}; +pub use smoltcp::wire::{IpProtocol, IpVersion}; use crate::Stack; From 117d091ea1dd7aac410e6d26492866f9d20d3ec6 Mon Sep 17 00:00:00 2001 From: Frostie314159 Date: Wed, 30 Oct 2024 12:30:48 +0100 Subject: [PATCH 2/2] Made import private again. --- embassy-net/src/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-net/src/raw.rs b/embassy-net/src/raw.rs index 0169606d5..1f725d00b 100644 --- a/embassy-net/src/raw.rs +++ b/embassy-net/src/raw.rs @@ -5,7 +5,7 @@ use core::mem; use core::task::{Context, Poll}; use embassy_net_driver::Driver; -pub use smoltcp::iface::{Interface, SocketHandle}; +use smoltcp::iface::{Interface, SocketHandle}; use smoltcp::socket::raw; pub use smoltcp::socket::raw::PacketMetadata; pub use smoltcp::wire::{IpProtocol, IpVersion};