Skip to content

Commit 2e9a30a

Browse files
authored
Merge pull request #1041 from inomotech-foss/main
Fix compilation errors when socket-dns is enabled but socket-udp isn't
2 parents 3e3afb6 + c52cd4d commit 2e9a30a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ FEATURES_CHECK=(
4242
"medium-ip,medium-ethernet,medium-ieee802154,proto-ipv6,proto-ipv6,multicast,proto-dhcpv4,proto-ipsec,socket-raw,socket-udp,socket-tcp,socket-icmp,socket-dns,async"
4343
"defmt,medium-ip,medium-ethernet,proto-ipv6,proto-ipv6,multicast,proto-dhcpv4,socket-raw,socket-udp,socket-tcp,socket-icmp,socket-dns,async"
4444
"defmt,alloc,medium-ip,medium-ethernet,proto-ipv6,proto-ipv6,multicast,proto-dhcpv4,socket-raw,socket-udp,socket-tcp,socket-icmp,socket-dns,async"
45+
"medium-ieee802154,proto-sixlowpan,socket-dns"
4546
)
4647

4748
test() {

src/iface/packet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<'p> IpPayload<'p> {
239239
Self::Igmp(_) => unreachable!(),
240240
#[cfg(feature = "socket-tcp")]
241241
Self::Tcp(_) => SixlowpanNextHeader::Uncompressed(IpProtocol::Tcp),
242-
#[cfg(feature = "socket-udp")]
242+
#[cfg(any(feature = "socket-udp", feature = "socket-dns"))]
243243
Self::Udp(..) => SixlowpanNextHeader::Compressed,
244244
#[cfg(feature = "socket-raw")]
245245
Self::Raw(_) => todo!(),

0 commit comments

Comments
 (0)