mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-20 08:52:12 +01:00
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 https://github.com/lwip-tcpip/lwip/pull/73. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
76 lines
1.8 KiB
Plaintext
76 lines
1.8 KiB
Plaintext
#
|
|
# Network configuration (with lwIP stack)
|
|
#
|
|
|
|
if NET_LWIP
|
|
|
|
config LWIP_ICMP_SHOW_UNREACH
|
|
bool "Print ICMP Destination Unreachable messages"
|
|
default y
|
|
depends on CMD_TFTPBOOT || CMD_SNTP
|
|
select PROT_ICMP_LWIP
|
|
help
|
|
Prints a message whenever an ICMP Destination Unreachable message is
|
|
received while running a network command that sends requests via UDP.
|
|
Enabling this can make troubleshooting easier.
|
|
|
|
config LWIP_DEBUG
|
|
bool "Enable debug traces in the lwIP library"
|
|
help
|
|
Prints messages to the console regarding network packets that go in
|
|
and out of the lwIP library.
|
|
|
|
config LWIP_DEBUG_RXTX
|
|
bool "Dump packets sent and received by lwIP"
|
|
help
|
|
Performs an hexadecimal & ASCII dump of the data received and sent by
|
|
the lwIP network stack.
|
|
|
|
config LWIP_ASSERT
|
|
bool "Enable assertions in the lwIP library"
|
|
help
|
|
Compiles additional error checking code into the lwIP library. These
|
|
checks are related to conditions that should not happen in typical
|
|
use, but may be helpful to debug new features.
|
|
|
|
config PROT_DHCP_LWIP
|
|
bool
|
|
select PROT_UDP_LWIP
|
|
|
|
config PROT_DNS_LWIP
|
|
bool
|
|
select PROT_UDP_LWIP
|
|
|
|
config PROT_ICMP_LWIP
|
|
bool
|
|
|
|
config PROT_RAW_LWIP
|
|
bool
|
|
|
|
config PROT_TCP_LWIP
|
|
bool
|
|
|
|
config PROT_TCP_SACK_LWIP
|
|
bool "TCP SACK support"
|
|
depends on PROT_TCP_LWIP
|
|
default y
|
|
help
|
|
TCP protocol with selective acknowledgements. Improves
|
|
file transfer speed in wget.
|
|
|
|
config PROT_UDP_LWIP
|
|
bool
|
|
|
|
config LWIP_TCP_WND
|
|
int "Value of TCP_WND"
|
|
default 32768 if ARCH_QEMU
|
|
default 3000000
|
|
help
|
|
Default value for TCP_WND in the lwIP configuration
|
|
Lower values result in slower wget transfer speeds in
|
|
general, especially when the latency on the network is high,
|
|
but QEMU with "-net user" needs no more than a few KB or the
|
|
transfer will stall and eventually time out.
|
|
|
|
endif # NET_LWIP
|