diff --git a/src/inet/UDPEndPointImplLwIP.cpp b/src/inet/UDPEndPointImplLwIP.cpp index 5078d750a05059..7627ff667db57d 100755 --- a/src/inet/UDPEndPointImplLwIP.cpp +++ b/src/inet/UDPEndPointImplLwIP.cpp @@ -23,10 +23,6 @@ #include -#if CHIP_HAVE_CONFIG_H -#include // nogncheck -#endif // CHIP_HAVE_CONFIG_H - #if INET_CONFIG_ENABLE_IPV4 #include #endif // INET_CONFIG_ENABLE_IPV4 @@ -121,13 +117,9 @@ CHIP_ERROR UDPEndPointImplLwIP::LwIPBindInterface(struct udp_pcb * aUDP, Interfa InterfaceId UDPEndPointImplLwIP::GetBoundInterface() const { -#if HAVE_LWIP_UDP_BIND_NETIF struct netif * netif; RunOnTCPIP([this, &netif]() { netif = netif_get_by_index(mUDP->netif_idx); }); return InterfaceId(netif); -#else - return InterfaceId(mUDP->intf_filter); -#endif } uint16_t UDPEndPointImplLwIP::GetBoundPort() const diff --git a/src/lwip/BUILD.gn b/src/lwip/BUILD.gn index d6248cbfba01a3..6941f3ad79d8ce 100644 --- a/src/lwip/BUILD.gn +++ b/src/lwip/BUILD.gn @@ -84,7 +84,8 @@ buildconfig_header("lwip_buildconfig") { header = "lwip_buildconfig.h" header_dir = "lwip" - defines = [ "HAVE_LWIP_UDP_BIND_NETIF=1" ] + defines = [] + if (lwip_platform != "external") { if (lwip_debug) { # Automatically enable LWIP_DEBUG for internal is_debug builds. diff --git a/src/platform/mt793x/lwip/BUILD.gn b/src/platform/mt793x/lwip/BUILD.gn index 55c170c2f9efaa..fb0779b4ee9916 100644 --- a/src/platform/mt793x/lwip/BUILD.gn +++ b/src/platform/mt793x/lwip/BUILD.gn @@ -37,7 +37,6 @@ import("${mt793x_sdk_build_root}/mt793x_sdk.gni") # header = "lwip_buildconfig.h" # header_dir = "lwip" # -# defines = [ "HAVE_LWIP_UDP_BIND_NETIF=1" ] # if (lwip_platform != "external") { # if (current_os == "android") { # defines += [ "LWIP_NO_STDINT_H=1" ]