[PATCH v1 0/2] lwip: add Kconfig to decode and print ICMP unreachable messages

Jerome Forissier jerome.forissier at linaro.org
Wed Aug 6 10:58:12 CEST 2025


When using commands based on UDP such as tftp or sntp, if the server is
not reachable or the service is not started on the expected port then
the command ultimately times out. However it often happens that the server
or a router sends back an ICMP Destination Unreachable message. That can
help troubleshooting. Therefore, add support to the lwIP stack and to
U-Boot to handle those packets and print a diagnostic message on the
console.


Jerome Forissier (2):
  lwip: icmp: allow reporting ICMP detination unreachable
  net: lwip: add Kconfig option to show ICMP unreachable errors

 lib/lwip/lwip/src/core/ipv4/icmp.c | 17 +++++++++----
 lib/lwip/u-boot/arch/cc.h          |  7 ++++++
 lib/lwip/u-boot/lwipopts.h         |  4 ++++
 net/lwip/Kconfig                   | 13 ++++++++++
 net/lwip/Makefile                  |  1 +
 net/lwip/icmp_unreach.c            | 38 ++++++++++++++++++++++++++++++
 6 files changed, 76 insertions(+), 4 deletions(-)
 create mode 100644 net/lwip/icmp_unreach.c

-- 
2.43.0

base-commit: ae5711f881100f856ead1e76832c32b92dba93c7
branch: lwip-icmp-unreach


More information about the U-Boot mailing list