From c53e6682fb8615beed7c586b3e54e8210dcc8672 Mon Sep 17 00:00:00 2001 From: Gopa Kumar Date: Sat, 29 Oct 2022 17:05:58 -0400 Subject: [PATCH] Fix medium-ip not compiling complaining of needing EthernetAddress --- .github/workflows/test.yml | 1 + src/iface/interface/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a18cb9de9..63c46aa5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,6 +41,7 @@ jobs: - std medium-ethernet proto-ipv6 socket-tcp - std medium-ethernet medium-ip proto-ipv4 socket-icmp socket-tcp - std medium-ip proto-ipv6 socket-icmp socket-tcp + - std medium-ip proto-ipv4 proto-ipv6 socket-tcp socket-udp # Test features chosen to be as aggressive as possible. - std medium-ethernet medium-ip medium-ieee802154 proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp socket-dns async diff --git a/src/iface/interface/mod.rs b/src/iface/interface/mod.rs index c5050908b..6e9c0bb16 100644 --- a/src/iface/interface/mod.rs +++ b/src/iface/interface/mod.rs @@ -79,7 +79,7 @@ impl<'a> OutPackets<'a> { } #[allow(unused)] -#[cfg(feature = "proto-ipv4")] +#[cfg(feature = "proto-ipv4-fragmentation")] pub(crate) struct Ipv4OutPacket<'a> { /// The buffer that holds the unfragmented 6LoWPAN packet. buffer: ManagedSlice<'a, u8>,