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 | |
Philippe Reynes | b43ea1b | 2020-09-18 14:13:00 +0200 | [diff] [blame] | 15 | config PROT_UDP |
| 16 | bool "Enable generic udp framework" |
| 17 | help |
| 18 | Enable a generic udp framework that allows defining a custom |
| 19 | handler for udp protocol. |
| 20 | |
Adam Ford | 3275f26 | 2020-07-03 09:00:14 -0500 | [diff] [blame] | 21 | config BOOTP_SEND_HOSTNAME |
| 22 | bool "Send hostname to DNS server" |
| 23 | help |
| 24 | Some DHCP servers are capable to do a dynamic update of a |
| 25 | DNS server. To do this, they need the hostname of the DHCP |
| 26 | requester. |
| 27 | If CONFIG_BOOTP_SEND_HOSTNAME is defined, the content |
| 28 | of the "hostname" environment variable is passed as |
| 29 | option 12 to the DHCP server. |
| 30 | |
Joe Hershberger | bef1014 | 2015-05-04 14:55:13 -0500 | [diff] [blame] | 31 | config NET_RANDOM_ETHADDR |
| 32 | bool "Random ethaddr if unset" |
| 33 | help |
Michal Simek | 381e6e5 | 2022-01-11 10:28:09 +0100 | [diff] [blame] | 34 | Selecting this will allow the Ethernet interface to function even |
| 35 | when the ethaddr variable for that interface is unset. In this case, |
| 36 | a random MAC address in the locally administered address space is |
| 37 | generated. It will be saved to the appropriate environment variable, |
| 38 | too. |
Joe Hershberger | bef1014 | 2015-05-04 14:55:13 -0500 | [diff] [blame] | 39 | |
Bernhard Nortmann | 2666074 | 2015-09-14 15:29:46 +0200 | [diff] [blame] | 40 | config NETCONSOLE |
| 41 | bool "NetConsole support" |
| 42 | help |
| 43 | Support the 'nc' input/output device for networked console. |
| 44 | See README.NetConsole for details. |
| 45 | |
Marek Vasut | 3f6bcdf | 2019-06-11 04:51:14 +0200 | [diff] [blame] | 46 | config IP_DEFRAG |
| 47 | bool "Support IP datagram reassembly" |
Marek Vasut | 3f6bcdf | 2019-06-11 04:51:14 +0200 | [diff] [blame] | 48 | help |
| 49 | Selecting this will enable IP datagram reassembly according |
| 50 | to the algorithm in RFC815. |
| 51 | |
Rasmus Villemoes | 215df01 | 2020-02-07 15:17:42 +0000 | [diff] [blame] | 52 | config NET_MAXDEFRAG |
| 53 | int "Size of buffer used for IP datagram reassembly" |
| 54 | depends on IP_DEFRAG |
| 55 | default 16384 |
| 56 | range 1024 65536 |
| 57 | help |
| 58 | This defines the size of the statically allocated buffer |
| 59 | used for reassembly, and thus an upper bound for the size of |
| 60 | IP datagrams that can be received. |
| 61 | |
Marek Vasut | b618b37 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 62 | config TFTP_BLOCKSIZE |
| 63 | int "TFTP block size" |
Andre Przywara | 16cdc2d | 2019-11-23 17:58:59 +0000 | [diff] [blame] | 64 | default 1468 |
Marek Vasut | b618b37 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 65 | help |
| 66 | Default TFTP block size. |
Patrick Delaunay | 421de7f | 2020-04-22 14:18:25 +0200 | [diff] [blame] | 67 | The MTU is typically 1500 for ethernet, so a TFTP block of |
| 68 | 1468 (MTU minus eth.hdrs) provides a good throughput with |
| 69 | almost-MTU block sizes. |
| 70 | You can also activate CONFIG_IP_DEFRAG to set a larger block. |
Marek Vasut | b618b37 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 71 | |
Ramon Fried | cc6b87e | 2020-07-18 23:31:46 +0300 | [diff] [blame] | 72 | config TFTP_WINDOWSIZE |
| 73 | int "TFTP window size" |
| 74 | default 1 |
| 75 | help |
| 76 | Default TFTP window size. |
| 77 | RFC7440 defines an optional window size of transmits, |
| 78 | before an ack response is required. |
| 79 | The default TFTP implementation implies a window size of 1. |
| 80 | |
Tero Kristo | 2509493 | 2021-05-12 11:03:04 +0300 | [diff] [blame] | 81 | config TFTP_TSIZE |
| 82 | bool "Track TFTP transfers based on file size option" |
| 83 | depends on CMD_TFTPBOOT |
| 84 | default y if (ARCH_OMAP2PLUS || ARCH_K3) |
| 85 | help |
| 86 | By default, TFTP progress bar is increased for each received UDP |
| 87 | frame, which can lead into long time being spent for sending |
| 88 | data over the UART. Enabling this option, TFTP queries the file |
| 89 | size from server, and if supported, limits the progress bar to |
| 90 | 50 characters total which fits on single line. |
| 91 | |
Lyle Franklin | c8e251f | 2019-08-05 06:23:42 -0400 | [diff] [blame] | 92 | config SERVERIP_FROM_PROXYDHCP |
| 93 | bool "Get serverip value from Proxy DHCP response" |
| 94 | help |
| 95 | Allows bootfile config to be fetched from Proxy DHCP server |
| 96 | while IP is obtained from main DHCP server. |
| 97 | |
| 98 | config SERVERIP_FROM_PROXYDHCP_DELAY_MS |
| 99 | int "# of additional milliseconds to wait for ProxyDHCP response" |
| 100 | default 100 |
| 101 | help |
| 102 | Amount of additional time to wait for ProxyDHCP response after |
| 103 | receiving response from main DHCP server. Has no effect if |
| 104 | SERVERIP_FROM_PROXYDHCP is false. |
| 105 | |
Simon Glass | 3df6cd4 | 2021-12-18 11:27:48 -0700 | [diff] [blame] | 106 | config KEEP_SERVERADDR |
| 107 | bool "Write the server's MAC address to 'serveraddr'" |
| 108 | default y if SANDBOX |
| 109 | help |
| 110 | Keeps the server's MAC address, in the env 'serveraddr' |
| 111 | for passing to bootargs (like Linux's netconsole option). If this is |
| 112 | enabled, when an ARP reply is received, the server's IP address is |
| 113 | written there. |
| 114 | |
Simon Glass | 4b37fd1 | 2021-12-18 11:27:49 -0700 | [diff] [blame] | 115 | config UDP_CHECKSUM |
| 116 | bool "Check the UDP checksum" |
Simon Glass | d6b318d | 2021-12-18 11:27:50 -0700 | [diff] [blame] | 117 | default y if SANDBOX |
Simon Glass | 4b37fd1 | 2021-12-18 11:27:49 -0700 | [diff] [blame] | 118 | help |
| 119 | Enable this to verify the checksum on UDP packets. If the checksum |
| 120 | is wrong then the packet is discussed and an error is shown, like |
| 121 | "UDP wrong checksum 29374a23 30ff3826" |
| 122 | |
Simon Glass | d3877fb | 2021-12-18 11:27:51 -0700 | [diff] [blame] | 123 | config BOOTP_SERVERIP |
| 124 | bool "Use the 'serverip' env var for tftp, not bootp" |
| 125 | help |
| 126 | Enable this if the TFTP server will be the 'serverip' environment |
| 127 | variable, not the BOOTP server. This affects the operation of both |
| 128 | bootp and tftp. |
| 129 | |
Masahiro Yamada | ed36323 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 130 | endif # if NET |