Skip to content

libretiny configures obsolete lwip setting to disable ARP/ACD after DHCP #316

@devsaurus

Description

@devsaurus

Observed with libretiny 1.7.0 as part of esphome 2025.2.2.

I"ve been debugging intermittent WIFI connection issues of the wb2s and cb2s devices against (some of) my OpenWrt APs. Problem is that the ARP handshake following the DHCP sequence sometimes hangs for a long time (> 10ths of minutes). Symptoms in this state are

  • Device is associated with the WIFI network
  • Device is assigned an IP from the DHCP server
  • Device's IP and name are registered with mDNS and DNS
  • Esphome dashboard shows device is online
  • Homeassistant reports the device offline in the device tab
  • Device doesn't respond to pings and its web interface cannot be reached

Also reviewed the lwip configuration and noticed that libretiny configures DHCP_DOES_ARP_CHECK in lwipopts.h. However, the respective configuration setting was changed to LWIP_DHCP_DOES_ACD_CHECK after lwip-tcpip/lwip@7d1c26c

Adapting lwipopts.h accordingly results in a change of the DHCP/ARP sequence that doesn't emit ARP requests to the device's IP from the device itself anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions