Masahiro Yamada | ed36323 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 1 | # |
| 2 | # Network configuration |
| 3 | # |
| 4 | |
| 5 | menuconfig NET |
| 6 | bool "Networking support" |
Michal Simek | 3b3ea2c | 2018-02-26 16:01:02 +0100 | [diff] [blame] | 7 | default y |
Masahiro Yamada | ed36323 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 8 | |
| 9 | if NET |
| 10 | |
Tom Rini | 5d4e863 | 2022-03-11 09:12:01 -0500 | [diff] [blame] | 11 | config ARP_TIMEOUT |
| 12 | int "Milliseconds before trying ARP again" |
| 13 | default 5000 |
| 14 | |
Tom Rini | 01d1b99 | 2022-03-11 09:12:02 -0500 | [diff] [blame] | 15 | config 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 Reynes | b43ea1b | 2020-09-18 14:13:00 +0200 | [diff] [blame] | 22 | config 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 Ford | 3275f26 | 2020-07-03 09:00:14 -0500 | [diff] [blame] | 28 | config 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 Hershberger | bef1014 | 2015-05-04 14:55:13 -0500 | [diff] [blame] | 38 | config NET_RANDOM_ETHADDR |
| 39 | bool "Random ethaddr if unset" |
| 40 | help |
Michal Simek | 381e6e5 | 2022-01-11 10:28:09 +0100 | [diff] [blame] | 41 | 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 Hershberger | bef1014 | 2015-05-04 14:55:13 -0500 | [diff] [blame] | 46 | |
Bernhard Nortmann | 2666074 | 2015-09-14 15:29:46 +0200 | [diff] [blame] | 47 | config 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 Vasut | 3f6bcdf | 2019-06-11 04:51:14 +0200 | [diff] [blame] | 53 | config IP_DEFRAG |
| 54 | bool "Support IP datagram reassembly" |
Marek Vasut | 3f6bcdf | 2019-06-11 04:51:14 +0200 | [diff] [blame] | 55 | help |
| 56 | Selecting this will enable IP datagram reassembly according |
| 57 | to the algorithm in RFC815. |
| 58 | |
Rasmus Villemoes | 215df01 | 2020-02-07 15:17:42 +0000 | [diff] [blame] | 59 | config 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 | |
Tom Rini | 1d5686a | 2022-03-18 08:38:21 -0400 | [diff] [blame] | 69 | config SYS_FAULT_ECHO_LINK_DOWN |
| 70 | bool "Echo the inverted Ethernet link state to the fault LED" |
| 71 | help |
| 72 | Echo the inverted Ethernet link state to the fault LED. Note, if |
| 73 | this option is active, then CONFIG_SYS_FAULT_MII_ADDR also needs to |
| 74 | be configured. |
| 75 | |
Marek Vasut | b618b37 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 76 | config TFTP_BLOCKSIZE |
| 77 | int "TFTP block size" |
Andre Przywara | 16cdc2d | 2019-11-23 17:58:59 +0000 | [diff] [blame] | 78 | default 1468 |
Marek Vasut | b618b37 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 79 | help |
| 80 | Default TFTP block size. |
Patrick Delaunay | 421de7f | 2020-04-22 14:18:25 +0200 | [diff] [blame] | 81 | The MTU is typically 1500 for ethernet, so a TFTP block of |
| 82 | 1468 (MTU minus eth.hdrs) provides a good throughput with |
| 83 | almost-MTU block sizes. |
| 84 | You can also activate CONFIG_IP_DEFRAG to set a larger block. |
Marek Vasut | b618b37 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 85 | |
Tom Rini | 5842c810 | 2022-03-18 08:38:23 -0400 | [diff] [blame] | 86 | config TFTP_PORT |
| 87 | bool "Set TFTP UDP source/destination ports via the environment" |
| 88 | help |
| 89 | If this is defined, the environment variable tftpsrcp is used to |
| 90 | supply the TFTP UDP source port value. If tftpsrcp isn't defined, |
| 91 | the normal pseudo-random port number generator is used. |
| 92 | |
| 93 | Also, the environment variable tftpdstp is used to supply the TFTP |
| 94 | UDP destination port value. If tftpdstp isn't defined, the normal |
| 95 | port 69 is used. |
| 96 | |
| 97 | The purpose for tftpsrcp is to allow a TFTP server to blindly start |
| 98 | the TFTP transfer using the pre-configured target IP address and UDP |
| 99 | port. This has the effect of "punching through" the (Windows XP) |
| 100 | firewall, allowing the remainder of the TFTP transfer to proceed |
| 101 | normally. A better solution is to properly configure the firewall, |
| 102 | but sometimes that is not allowed. |
| 103 | |
Ramon Fried | cc6b87e | 2020-07-18 23:31:46 +0300 | [diff] [blame] | 104 | config TFTP_WINDOWSIZE |
| 105 | int "TFTP window size" |
| 106 | default 1 |
| 107 | help |
| 108 | Default TFTP window size. |
| 109 | RFC7440 defines an optional window size of transmits, |
| 110 | before an ack response is required. |
| 111 | The default TFTP implementation implies a window size of 1. |
| 112 | |
Tero Kristo | 2509493 | 2021-05-12 11:03:04 +0300 | [diff] [blame] | 113 | config TFTP_TSIZE |
| 114 | bool "Track TFTP transfers based on file size option" |
| 115 | depends on CMD_TFTPBOOT |
| 116 | default y if (ARCH_OMAP2PLUS || ARCH_K3) |
| 117 | help |
| 118 | By default, TFTP progress bar is increased for each received UDP |
| 119 | frame, which can lead into long time being spent for sending |
| 120 | data over the UART. Enabling this option, TFTP queries the file |
| 121 | size from server, and if supported, limits the progress bar to |
| 122 | 50 characters total which fits on single line. |
| 123 | |
Lyle Franklin | c8e251f | 2019-08-05 06:23:42 -0400 | [diff] [blame] | 124 | config SERVERIP_FROM_PROXYDHCP |
| 125 | bool "Get serverip value from Proxy DHCP response" |
| 126 | help |
| 127 | Allows bootfile config to be fetched from Proxy DHCP server |
| 128 | while IP is obtained from main DHCP server. |
| 129 | |
| 130 | config SERVERIP_FROM_PROXYDHCP_DELAY_MS |
| 131 | int "# of additional milliseconds to wait for ProxyDHCP response" |
| 132 | default 100 |
| 133 | help |
| 134 | Amount of additional time to wait for ProxyDHCP response after |
| 135 | receiving response from main DHCP server. Has no effect if |
| 136 | SERVERIP_FROM_PROXYDHCP is false. |
| 137 | |
Simon Glass | 3df6cd4 | 2021-12-18 11:27:48 -0700 | [diff] [blame] | 138 | config KEEP_SERVERADDR |
| 139 | bool "Write the server's MAC address to 'serveraddr'" |
| 140 | default y if SANDBOX |
| 141 | help |
| 142 | Keeps the server's MAC address, in the env 'serveraddr' |
| 143 | for passing to bootargs (like Linux's netconsole option). If this is |
| 144 | enabled, when an ARP reply is received, the server's IP address is |
| 145 | written there. |
| 146 | |
Simon Glass | 4b37fd1 | 2021-12-18 11:27:49 -0700 | [diff] [blame] | 147 | config UDP_CHECKSUM |
| 148 | bool "Check the UDP checksum" |
Simon Glass | d6b318d | 2021-12-18 11:27:50 -0700 | [diff] [blame] | 149 | default y if SANDBOX |
Simon Glass | 4b37fd1 | 2021-12-18 11:27:49 -0700 | [diff] [blame] | 150 | help |
| 151 | Enable this to verify the checksum on UDP packets. If the checksum |
| 152 | is wrong then the packet is discussed and an error is shown, like |
| 153 | "UDP wrong checksum 29374a23 30ff3826" |
| 154 | |
Simon Glass | d3877fb | 2021-12-18 11:27:51 -0700 | [diff] [blame] | 155 | config BOOTP_SERVERIP |
| 156 | bool "Use the 'serverip' env var for tftp, not bootp" |
| 157 | help |
| 158 | Enable this if the TFTP server will be the 'serverip' environment |
| 159 | variable, not the BOOTP server. This affects the operation of both |
| 160 | bootp and tftp. |
| 161 | |
Masahiro Yamada | ed36323 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 162 | endif # if NET |
Tom Rini | 0b956e3 | 2022-03-18 08:38:25 -0400 | [diff] [blame] | 163 | |
| 164 | config SYS_RX_ETH_BUFFER |
| 165 | int "Number of receive packet buffers" |
| 166 | default 4 |
| 167 | help |
| 168 | Defines the number of Ethernet receive buffers. On some Ethernet |
| 169 | controllers it is recommended to set this value to 8 or even higher, |
| 170 | since all buffers can be full shortly after enabling the interface on |
| 171 | high Ethernet traffic. |