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 | |
Joe Hershberger | 2dc2b5d | 2015-05-04 14:55:13 -0500 | [diff] [blame] | 11 | config NET_RANDOM_ETHADDR |
| 12 | bool "Random ethaddr if unset" |
| 13 | help |
| 14 | Selecting this will allow the Ethernet interface to function |
| 15 | even when the ethaddr variable for that interface is unset. |
| 16 | A new MAC address will be generated on every boot and it will |
| 17 | not be added to the environment. |
| 18 | |
Bernhard Nortmann | deea30d | 2015-09-14 15:29:46 +0200 | [diff] [blame] | 19 | config NETCONSOLE |
| 20 | bool "NetConsole support" |
| 21 | help |
| 22 | Support the 'nc' input/output device for networked console. |
| 23 | See README.NetConsole for details. |
| 24 | |
Marek Vasut | a61efd8 | 2019-06-11 04:51:14 +0200 | [diff] [blame] | 25 | config IP_DEFRAG |
| 26 | bool "Support IP datagram reassembly" |
| 27 | default n |
| 28 | help |
| 29 | Selecting this will enable IP datagram reassembly according |
| 30 | to the algorithm in RFC815. |
| 31 | |
Rasmus Villemoes | a94b3ac | 2020-02-07 15:17:42 +0000 | [diff] [blame] | 32 | config NET_MAXDEFRAG |
| 33 | int "Size of buffer used for IP datagram reassembly" |
| 34 | depends on IP_DEFRAG |
| 35 | default 16384 |
| 36 | range 1024 65536 |
| 37 | help |
| 38 | This defines the size of the statically allocated buffer |
| 39 | used for reassembly, and thus an upper bound for the size of |
| 40 | IP datagrams that can be received. |
| 41 | |
Marek Vasut | 09b93a6 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 42 | config TFTP_BLOCKSIZE |
| 43 | int "TFTP block size" |
Andre Przywara | ca23405 | 2019-11-23 17:58:59 +0000 | [diff] [blame] | 44 | default 1468 |
Marek Vasut | 09b93a6 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 45 | help |
| 46 | Default TFTP block size. |
Patrick Delaunay | 1e51f3e | 2020-04-22 14:18:25 +0200 | [diff] [blame] | 47 | The MTU is typically 1500 for ethernet, so a TFTP block of |
| 48 | 1468 (MTU minus eth.hdrs) provides a good throughput with |
| 49 | almost-MTU block sizes. |
| 50 | You can also activate CONFIG_IP_DEFRAG to set a larger block. |
Marek Vasut | 09b93a6 | 2019-06-11 04:51:15 +0200 | [diff] [blame] | 51 | |
Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 52 | endif # if NET |