Skip to content

Commit 6a64af1

Browse files
committed
For now assume the raw packet API is only usable on Linux
1 parent e389a57 commit 6a64af1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

edge-nal-std/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ fn dns_lookup_host(host: &str, addr_type: AddrType) -> Result<IpAddr, io::Error>
581581
.ok_or_else(|| io::ErrorKind::AddrNotAvailable.into())
582582
}
583583

584-
#[cfg(all(unix, not(target_os = "espidf")))]
584+
// TODO: Figure out if the RAW socket implementation can be used on any other OS.
585+
// It seems, that would be difficult on Darwin; wondering about the other BSDs though?
586+
#[cfg(any(target_os = "linux", target_os = "android"))]
585587
mod raw {
586588
use core::ops::Deref;
587589
use core::pin::pin;

0 commit comments

Comments
 (0)