1#
2# Network configuration (with lwIP stack)
3#
4
5if NET_LWIP
6
7config LWIP_ICMP_SHOW_UNREACH
8	bool "Print ICMP Destination Unreachable messages"
9	default y
10	depends on CMD_TFTPBOOT || CMD_SNTP
11	select PROT_ICMP_LWIP
12	help
13	  Prints a message whenever an ICMP Destination Unreachable message is
14	  received while running a network command that sends requests via UDP.
15	  Enabling this can make troubleshooting easier.
16
17config LWIP_DEBUG
18	bool "Enable debug traces in the lwIP library"
19	help
20	  Prints messages to the console regarding network packets that go in
21          and out of the lwIP library.
22
23config LWIP_DEBUG_RXTX
24	bool "Dump packets sent and received by lwIP"
25	help
26	  Performs an hexadecimal & ASCII dump of the data received and sent by
27	  the lwIP network stack.
28
29config LWIP_ASSERT
30	bool "Enable assertions in the lwIP library"
31	help
32	  Compiles additional error checking code into the lwIP library. These
33	  checks are related to conditions that should not happen in typical
34	  use, but may be helpful to debug new features.
35
36config PROT_DHCP_LWIP
37	bool
38	select PROT_UDP_LWIP
39
40config PROT_DNS_LWIP
41	bool
42	select PROT_UDP_LWIP
43
44config PROT_ICMP_LWIP
45	bool
46
47config PROT_RAW_LWIP
48	bool
49
50config PROT_TCP_LWIP
51	bool
52
53config PROT_TCP_SACK_LWIP
54	bool "TCP SACK support"
55	depends on PROT_TCP_LWIP
56	default y
57	help
58	  TCP protocol with selective acknowledgements. Improves
59	  file transfer speed in wget.
60
61config PROT_UDP_LWIP
62	bool
63
64config LWIP_TCP_WND
65	int "Value of TCP_WND"
66	default 32768 if ARCH_QEMU
67	default 3000000
68	help
69	  Default value for TCP_WND in the lwIP configuration
70	  Lower values result in slower wget transfer speeds in
71	  general, especially when the latency on the network is high,
72	  but QEMU with "-net user" needs no more than a few KB or the
73	  transfer will stall and eventually time out.
74
75endif # NET_LWIP
76