blob: 2e32b556ad7e998663e808afebd1a418970c8c68 [file] [log] [blame]
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09001#
2# Network configuration
3#
4
5menuconfig NET
6 bool "Networking support"
Michal Simek2f785a12018-02-26 16:01:02 +01007 default y
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09008
9if NET
10
Tom Rinia8a77502022-03-11 09:12:01 -050011config ARP_TIMEOUT
12 int "Milliseconds before trying ARP again"
13 default 5000
14
Tom Rini26011a32022-03-11 09:12:02 -050015config NET_RETRY_COUNT
16 int "Number of timeouts before giving up"
17 default 5
18 help
19 This variable defines the number of retries for network operations
20 like ARP, RARP, TFTP, or BOOTP before giving up the operation.
21
Philippe Reynes6ec70bc2020-09-18 14:13:00 +020022config PROT_UDP
23 bool "Enable generic udp framework"
24 help
25 Enable a generic udp framework that allows defining a custom
26 handler for udp protocol.
27
Adam Ford499c9f72020-07-03 09:00:14 -050028config BOOTP_SEND_HOSTNAME
29 bool "Send hostname to DNS server"
30 help
31 Some DHCP servers are capable to do a dynamic update of a
32 DNS server. To do this, they need the hostname of the DHCP
33 requester.
34 If CONFIG_BOOTP_SEND_HOSTNAME is defined, the content
35 of the "hostname" environment variable is passed as
36 option 12 to the DHCP server.
37
Joe Hershberger2dc2b5d2015-05-04 14:55:13 -050038config NET_RANDOM_ETHADDR
39 bool "Random ethaddr if unset"
40 help
Michal Simek2b254022022-01-11 10:28:09 +010041 Selecting this will allow the Ethernet interface to function even
42 when the ethaddr variable for that interface is unset. In this case,
43 a random MAC address in the locally administered address space is
44 generated. It will be saved to the appropriate environment variable,
45 too.
Joe Hershberger2dc2b5d2015-05-04 14:55:13 -050046
Bernhard Nortmanndeea30d2015-09-14 15:29:46 +020047config NETCONSOLE
48 bool "NetConsole support"
49 help
50 Support the 'nc' input/output device for networked console.
51 See README.NetConsole for details.
52
Marek Vasuta61efd82019-06-11 04:51:14 +020053config IP_DEFRAG
54 bool "Support IP datagram reassembly"
Marek Vasuta61efd82019-06-11 04:51:14 +020055 help
56 Selecting this will enable IP datagram reassembly according
57 to the algorithm in RFC815.
58
Rasmus Villemoesa94b3ac2020-02-07 15:17:42 +000059config NET_MAXDEFRAG
60 int "Size of buffer used for IP datagram reassembly"
61 depends on IP_DEFRAG
62 default 16384
63 range 1024 65536
64 help
65 This defines the size of the statically allocated buffer
66 used for reassembly, and thus an upper bound for the size of
67 IP datagrams that can be received.
68
Marek Vasut09b93a62019-06-11 04:51:15 +020069config TFTP_BLOCKSIZE
70 int "TFTP block size"
Andre Przywaraca234052019-11-23 17:58:59 +000071 default 1468
Marek Vasut09b93a62019-06-11 04:51:15 +020072 help
73 Default TFTP block size.
Patrick Delaunay1e51f3e2020-04-22 14:18:25 +020074 The MTU is typically 1500 for ethernet, so a TFTP block of
75 1468 (MTU minus eth.hdrs) provides a good throughput with
76 almost-MTU block sizes.
77 You can also activate CONFIG_IP_DEFRAG to set a larger block.
Marek Vasut09b93a62019-06-11 04:51:15 +020078
Ramon Fried6e9aa542020-07-18 23:31:46 +030079config TFTP_WINDOWSIZE
80 int "TFTP window size"
81 default 1
82 help
83 Default TFTP window size.
84 RFC7440 defines an optional window size of transmits,
85 before an ack response is required.
86 The default TFTP implementation implies a window size of 1.
87
Tero Kristo0624c812021-05-12 11:03:04 +030088config TFTP_TSIZE
89 bool "Track TFTP transfers based on file size option"
90 depends on CMD_TFTPBOOT
91 default y if (ARCH_OMAP2PLUS || ARCH_K3)
92 help
93 By default, TFTP progress bar is increased for each received UDP
94 frame, which can lead into long time being spent for sending
95 data over the UART. Enabling this option, TFTP queries the file
96 size from server, and if supported, limits the progress bar to
97 50 characters total which fits on single line.
98
Lyle Franklin73fcbc72019-08-05 06:23:42 -040099config SERVERIP_FROM_PROXYDHCP
100 bool "Get serverip value from Proxy DHCP response"
101 help
102 Allows bootfile config to be fetched from Proxy DHCP server
103 while IP is obtained from main DHCP server.
104
105config SERVERIP_FROM_PROXYDHCP_DELAY_MS
106 int "# of additional milliseconds to wait for ProxyDHCP response"
107 default 100
108 help
109 Amount of additional time to wait for ProxyDHCP response after
110 receiving response from main DHCP server. Has no effect if
111 SERVERIP_FROM_PROXYDHCP is false.
112
Simon Glasscc041b62021-12-18 11:27:48 -0700113config KEEP_SERVERADDR
114 bool "Write the server's MAC address to 'serveraddr'"
115 default y if SANDBOX
116 help
117 Keeps the server's MAC address, in the env 'serveraddr'
118 for passing to bootargs (like Linux's netconsole option). If this is
119 enabled, when an ARP reply is received, the server's IP address is
120 written there.
121
Simon Glasse0eb4ef2021-12-18 11:27:49 -0700122config UDP_CHECKSUM
123 bool "Check the UDP checksum"
Simon Glass65831d92021-12-18 11:27:50 -0700124 default y if SANDBOX
Simon Glasse0eb4ef2021-12-18 11:27:49 -0700125 help
126 Enable this to verify the checksum on UDP packets. If the checksum
127 is wrong then the packet is discussed and an error is shown, like
128 "UDP wrong checksum 29374a23 30ff3826"
129
Simon Glass1c383742021-12-18 11:27:51 -0700130config BOOTP_SERVERIP
131 bool "Use the 'serverip' env var for tftp, not bootp"
132 help
133 Enable this if the TFTP server will be the 'serverip' environment
134 variable, not the BOOTP server. This affects the operation of both
135 bootp and tftp.
136
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +0900137endif # if NET