Skip to content

Conversation

jforissier
Copy link
Contributor

Allow reporting ICMP destination unreachable messages via a user-defined callback.

Allow reporting ICMP destination unreachable messages via a user-defined
callback.

Signed-off-by: Jerome Forissier <[email protected]>
@jforissier jforissier force-pushed the to-upstream/icmp-dest-unreach-cb/v1 branch from 0b5eb2c to e698ffd Compare August 6, 2025 09:05
@jforissier jforissier changed the title icmp: allow reporting ICMP detination unreachable icmp: allow reporting ICMP destination unreachable Aug 6, 2025
trini pushed a commit to trini/u-boot that referenced this pull request Aug 18, 2025
Add Kconfig symbol LWIP_ICMP_SHOW_UNREACH which, when enabled, prints a
message to the console upon reception of ICMP unreachable messages. For
example:

 $ make qemu_arm64_lwip_defconfig
 $ qemu-system-aarch64 -M virt -cpu max -nographic -bios u-boot.bin
 [...]
 => dhcp
 DHCP client bound to address 10.0.2.15 (0 ms)
 => tftp 192.168.0.100:69:Image
 Using virtio-net#32 device
 TFTP from server 192.168.0.100; our IP address is 10.0.2.15
 Filename 'Image'.
 Load address: 0x40200000
 Loading: ICMP destination unreachable (host unreachable) from 192.168.0.16
 Timeout!
 => tftp 192.168.0.16:69:Image
 Using virtio-net#32 device
 TFTP from server 192.168.0.16; our IP address is 10.0.2.15
 Filename 'Image'.
 Load address: 0x40200000
 Loading: ICMP destination unreachable (port unreachable) from 192.168.0.16
 Timeout!
 =>

Submitted upstream as lwip-tcpip/lwip#73.

Signed-off-by: Jerome Forissier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant