aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/lib.rs
diff options
context:
space:
mode:
authorEmil Fresk <[email protected]>2023-11-14 08:31:02 +0100
committerEmil Fresk <[email protected]>2023-11-14 08:50:51 +0100
commitfd670a9ae527b534293eb692273285d7a1221cdd (patch)
tree828578d6896521734c6c531d291efb09b3b0310d /embassy-net/src/lib.rs
parentef69f386ab1c44c2e2813f8bf934e7440e09852a (diff)
Use smoltcp constant in results from DNS
Diffstat (limited to 'embassy-net/src/lib.rs')
-rw-r--r--embassy-net/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs
index b9315079a..6aa476aa0 100644
--- a/embassy-net/src/lib.rs
+++ b/embassy-net/src/lib.rs
@@ -494,7 +494,11 @@ impl<D: Driver> Stack<D> {
494 494
495 /// Make a query for a given name and return the corresponding IP addresses. 495 /// Make a query for a given name and return the corresponding IP addresses.
496 #[cfg(feature = "dns")] 496 #[cfg(feature = "dns")]
497 pub async fn dns_query(&self, name: &str, qtype: dns::DnsQueryType) -> Result<Vec<IpAddress, 1>, dns::Error> { 497 pub async fn dns_query(
498 &self,
499 name: &str,
500 qtype: dns::DnsQueryType,
501 ) -> Result<Vec<IpAddress, { smoltcp::config::DNS_MAX_RESULT_COUNT }>, dns::Error> {
498 // For A and AAAA queries we try detect whether `name` is just an IP address 502 // For A and AAAA queries we try detect whether `name` is just an IP address
499 match qtype { 503 match qtype {
500 #[cfg(feature = "proto-ipv4")] 504 #[cfg(feature = "proto-ipv4")]