libretiny
libretiny copied to clipboard
DHCP client sends wrong ARP packets
I have a number of bk7231t devices successfully flashed with libretiny. Occasionally, when they try to set up the DHCP lease, wrong packets are sent. Instead of asking for an IP address, or reclaiming it's current address, the device effectively claims the IP address of the DHCP server.
From the system log:
May 4 05:39:59 srv1 dhcpcd[449]: eth0: hardware address xx:xx:xx:xx:xx::ce claims 192.168.1.10
where 192.168.1.10 is the address of the DHCP server.
While this seems harmless, if a second package arrives at the DHCP server within 10 seconds it shuts down the network connection and, without DHCP server, the LAN slowly collapses.
The devices are GU10 lamps and TH06 sensors. All devices run the latest libretuya-esphome
v1.0.1+sha.8999cb9.dirty on generic-bk7231t-qfn32-tuya, compiled at May 4 2023 21:42:27, GCC 10.3.1 (-O1)
Nine out of ten devices have shown this behaviour in the last couple of weeks. Additional information (configs, ...) available on demand.