From fe6972991de4af4bbaed68c1af0f2e8cc951940f Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Mon, 23 Sep 2024 09:11:06 +0000 Subject: [PATCH] Remove the changes done for the ChipTool SDK e2e tests --- src/lib.rs | 6 +++--- src/netif.rs | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3c55b4e..aba6a6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ #![warn(clippy::large_types_passed_by_value)] use core::future::Future; -use core::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV6}; +use core::net::{Ipv6Addr, SocketAddr, SocketAddrV6}; use core::pin::pin; use edge_nal::{UdpBind, UdpSplit}; @@ -523,10 +523,10 @@ where &Host { id: 0, hostname: &hostname, - ip: Ipv4Addr::UNSPECIFIED, //_netif_conf.ipv4, + ip: _netif_conf.ipv4, ipv6: _netif_conf.ipv6, }, - None, //Some(_netif_conf.ipv4), + Some(_netif_conf.ipv4), Some(_netif_conf.interface), ) .await?; diff --git a/src/netif.rs b/src/netif.rs index 05b5e6a..7077609 100644 --- a/src/netif.rs +++ b/src/netif.rs @@ -226,10 +226,9 @@ mod unix { NetifSearchFlags::NON_LOOPBACK | NetifSearchFlags::NON_PEER_TO_PEER | NetifSearchFlags::BROADCAST - //| NetifSearchFlags::IPV4 + | NetifSearchFlags::IPV4 | NetifSearchFlags::IPV6 - //| NetifSearchFlags::IPV6_LINK_LOCAL - | NetifSearchFlags::IPV6_NON_LINK_LOCAL + | NetifSearchFlags::IPV6_LINK_LOCAL } }