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