[PATCH 0/3] lwIP fixes (SNTP with DHCP)

Jerome Forissier jerome.forissier at linaro.org
Mon Sep 22 11:35:40 CEST 2025


Michal S. has reported (privately) an issue with NET_LWIP when both
CMD_DHCP and CMD_SNTP are enabled. In such a case, one would expect the
sntp command to be able to use the NTP server(s) advertised during the
DHCP exchange, but this does not work. This series fixes the problem,
improves LWIP_DEBUG by also tracing NTP-related actions, and sets the
ntpserverip variable to be in line with the legacy NET stack.


Jerome Forissier (3):
  net: lwip: enable debug traces for SNTP when CONFIG_LWIP_DEBUG is set
  net: lwip: dhcp: make NTP servers usable by the sntp command
  net: lwip: dhcp: set ntpserverip environment variable

 lib/lwip/u-boot/lwipopts.h |  1 +
 net/lwip/dhcp.c            | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

-- 
2.48.1

base-commit: f28891d444631c91a6e090927486a2169b51b20f
branch: lwip-dhcp-sntp


More information about the U-Boot mailing list