Skip to content

Commit

Permalink
Fix compilation errors when socket-dns is enabled but socket-udp isn't
Browse files Browse the repository at this point in the history
  • Loading branch information
scootermon authored Feb 8, 2025
1 parent 3e3afb6 commit c52cd4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ FEATURES_CHECK=(
"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"
"defmt,medium-ip,medium-ethernet,proto-ipv6,proto-ipv6,multicast,proto-dhcpv4,socket-raw,socket-udp,socket-tcp,socket-icmp,socket-dns,async"
"defmt,alloc,medium-ip,medium-ethernet,proto-ipv6,proto-ipv6,multicast,proto-dhcpv4,socket-raw,socket-udp,socket-tcp,socket-icmp,socket-dns,async"
"medium-ieee802154,proto-sixlowpan,socket-dns"
)

test() {
Expand Down
2 changes: 1 addition & 1 deletion src/iface/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl<'p> IpPayload<'p> {
Self::Igmp(_) => unreachable!(),
#[cfg(feature = "socket-tcp")]
Self::Tcp(_) => SixlowpanNextHeader::Uncompressed(IpProtocol::Tcp),
#[cfg(feature = "socket-udp")]
#[cfg(any(feature = "socket-udp", feature = "socket-dns"))]
Self::Udp(..) => SixlowpanNextHeader::Compressed,
#[cfg(feature = "socket-raw")]
Self::Raw(_) => todo!(),
Expand Down

0 comments on commit c52cd4d

Please sign in to comment.