2014-09-16 07:32:58 +00:00
|
|
|
#
|
|
|
|
# Network configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig NET
|
|
|
|
bool "Networking support"
|
2018-02-26 15:01:02 +00:00
|
|
|
default y
|
2014-09-16 07:32:58 +00:00
|
|
|
|
|
|
|
if NET
|
|
|
|
|
2022-03-11 14:12:01 +00:00
|
|
|
config ARP_TIMEOUT
|
|
|
|
int "Milliseconds before trying ARP again"
|
|
|
|
default 5000
|
|
|
|
|
2022-03-11 14:12:02 +00:00
|
|
|
config NET_RETRY_COUNT
|
|
|
|
int "Number of timeouts before giving up"
|
|
|
|
default 5
|
|
|
|
help
|
|
|
|
This variable defines the number of retries for network operations
|
|
|
|
like ARP, RARP, TFTP, or BOOTP before giving up the operation.
|
|
|
|
|
2020-09-18 12:13:00 +00:00
|
|
|
config PROT_UDP
|
|
|
|
bool "Enable generic udp framework"
|
|
|
|
help
|
|
|
|
Enable a generic udp framework that allows defining a custom
|
|
|
|
handler for udp protocol.
|
|
|
|
|
2020-07-03 14:00:14 +00:00
|
|
|
config BOOTP_SEND_HOSTNAME
|
|
|
|
bool "Send hostname to DNS server"
|
|
|
|
help
|
|
|
|
Some DHCP servers are capable to do a dynamic update of a
|
|
|
|
DNS server. To do this, they need the hostname of the DHCP
|
|
|
|
requester.
|
|
|
|
If CONFIG_BOOTP_SEND_HOSTNAME is defined, the content
|
|
|
|
of the "hostname" environment variable is passed as
|
|
|
|
option 12 to the DHCP server.
|
|
|
|
|
2015-05-04 19:55:13 +00:00
|
|
|
config NET_RANDOM_ETHADDR
|
|
|
|
bool "Random ethaddr if unset"
|
|
|
|
help
|
2022-01-11 09:28:09 +00:00
|
|
|
Selecting this will allow the Ethernet interface to function even
|
|
|
|
when the ethaddr variable for that interface is unset. In this case,
|
|
|
|
a random MAC address in the locally administered address space is
|
|
|
|
generated. It will be saved to the appropriate environment variable,
|
|
|
|
too.
|
2015-05-04 19:55:13 +00:00
|
|
|
|
2015-09-14 13:29:46 +00:00
|
|
|
config NETCONSOLE
|
|
|
|
bool "NetConsole support"
|
|
|
|
help
|
|
|
|
Support the 'nc' input/output device for networked console.
|
|
|
|
See README.NetConsole for details.
|
|
|
|
|
2019-06-11 02:51:14 +00:00
|
|
|
config IP_DEFRAG
|
|
|
|
bool "Support IP datagram reassembly"
|
|
|
|
help
|
|
|
|
Selecting this will enable IP datagram reassembly according
|
|
|
|
to the algorithm in RFC815.
|
|
|
|
|
2020-02-07 15:17:42 +00:00
|
|
|
config NET_MAXDEFRAG
|
|
|
|
int "Size of buffer used for IP datagram reassembly"
|
|
|
|
depends on IP_DEFRAG
|
|
|
|
default 16384
|
|
|
|
range 1024 65536
|
|
|
|
help
|
|
|
|
This defines the size of the statically allocated buffer
|
|
|
|
used for reassembly, and thus an upper bound for the size of
|
|
|
|
IP datagrams that can be received.
|
|
|
|
|
2022-03-18 12:38:21 +00:00
|
|
|
config SYS_FAULT_ECHO_LINK_DOWN
|
|
|
|
bool "Echo the inverted Ethernet link state to the fault LED"
|
|
|
|
help
|
|
|
|
Echo the inverted Ethernet link state to the fault LED. Note, if
|
|
|
|
this option is active, then CONFIG_SYS_FAULT_MII_ADDR also needs to
|
|
|
|
be configured.
|
|
|
|
|
2019-06-11 02:51:15 +00:00
|
|
|
config TFTP_BLOCKSIZE
|
|
|
|
int "TFTP block size"
|
2019-11-23 17:58:59 +00:00
|
|
|
default 1468
|
2019-06-11 02:51:15 +00:00
|
|
|
help
|
|
|
|
Default TFTP block size.
|
2020-04-22 12:18:25 +00:00
|
|
|
The MTU is typically 1500 for ethernet, so a TFTP block of
|
|
|
|
1468 (MTU minus eth.hdrs) provides a good throughput with
|
|
|
|
almost-MTU block sizes.
|
|
|
|
You can also activate CONFIG_IP_DEFRAG to set a larger block.
|
2019-06-11 02:51:15 +00:00
|
|
|
|
2020-07-18 20:31:46 +00:00
|
|
|
config TFTP_WINDOWSIZE
|
|
|
|
int "TFTP window size"
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Default TFTP window size.
|
|
|
|
RFC7440 defines an optional window size of transmits,
|
|
|
|
before an ack response is required.
|
|
|
|
The default TFTP implementation implies a window size of 1.
|
|
|
|
|
2021-05-12 08:03:04 +00:00
|
|
|
config TFTP_TSIZE
|
|
|
|
bool "Track TFTP transfers based on file size option"
|
|
|
|
depends on CMD_TFTPBOOT
|
|
|
|
default y if (ARCH_OMAP2PLUS || ARCH_K3)
|
|
|
|
help
|
|
|
|
By default, TFTP progress bar is increased for each received UDP
|
|
|
|
frame, which can lead into long time being spent for sending
|
|
|
|
data over the UART. Enabling this option, TFTP queries the file
|
|
|
|
size from server, and if supported, limits the progress bar to
|
|
|
|
50 characters total which fits on single line.
|
|
|
|
|
2019-08-05 10:23:42 +00:00
|
|
|
config SERVERIP_FROM_PROXYDHCP
|
|
|
|
bool "Get serverip value from Proxy DHCP response"
|
|
|
|
help
|
|
|
|
Allows bootfile config to be fetched from Proxy DHCP server
|
|
|
|
while IP is obtained from main DHCP server.
|
|
|
|
|
|
|
|
config SERVERIP_FROM_PROXYDHCP_DELAY_MS
|
|
|
|
int "# of additional milliseconds to wait for ProxyDHCP response"
|
|
|
|
default 100
|
|
|
|
help
|
|
|
|
Amount of additional time to wait for ProxyDHCP response after
|
|
|
|
receiving response from main DHCP server. Has no effect if
|
|
|
|
SERVERIP_FROM_PROXYDHCP is false.
|
|
|
|
|
2021-12-18 18:27:48 +00:00
|
|
|
config KEEP_SERVERADDR
|
|
|
|
bool "Write the server's MAC address to 'serveraddr'"
|
|
|
|
default y if SANDBOX
|
|
|
|
help
|
|
|
|
Keeps the server's MAC address, in the env 'serveraddr'
|
|
|
|
for passing to bootargs (like Linux's netconsole option). If this is
|
|
|
|
enabled, when an ARP reply is received, the server's IP address is
|
|
|
|
written there.
|
|
|
|
|
2021-12-18 18:27:49 +00:00
|
|
|
config UDP_CHECKSUM
|
|
|
|
bool "Check the UDP checksum"
|
2021-12-18 18:27:50 +00:00
|
|
|
default y if SANDBOX
|
2021-12-18 18:27:49 +00:00
|
|
|
help
|
|
|
|
Enable this to verify the checksum on UDP packets. If the checksum
|
|
|
|
is wrong then the packet is discussed and an error is shown, like
|
|
|
|
"UDP wrong checksum 29374a23 30ff3826"
|
|
|
|
|
2021-12-18 18:27:51 +00:00
|
|
|
config BOOTP_SERVERIP
|
|
|
|
bool "Use the 'serverip' env var for tftp, not bootp"
|
|
|
|
help
|
|
|
|
Enable this if the TFTP server will be the 'serverip' environment
|
|
|
|
variable, not the BOOTP server. This affects the operation of both
|
|
|
|
bootp and tftp.
|
|
|
|
|
2014-09-16 07:32:58 +00:00
|
|
|
endif # if NET
|