blob: ac6d0cf8a6fc51fd61386f46a854face43f31b71 [file] [log] [blame]
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09001#
2# Network configuration
3#
4
5menuconfig NET
6 bool "Networking support"
Michal Simek2f785a12018-02-26 16:01:02 +01007 default y
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09008
9if NET
10
Joe Hershberger2dc2b5d2015-05-04 14:55:13 -050011config 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 Nortmanndeea30d2015-09-14 15:29:46 +020019config 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 Vasuta61efd82019-06-11 04:51:14 +020025config 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 Villemoesa94b3ac2020-02-07 15:17:42 +000032config 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 Vasut09b93a62019-06-11 04:51:15 +020042config TFTP_BLOCKSIZE
43 int "TFTP block size"
Andre Przywaraca234052019-11-23 17:58:59 +000044 default 1468
Marek Vasut09b93a62019-06-11 04:51:15 +020045 help
46 Default TFTP block size.
Patrick Delaunay1e51f3e2020-04-22 14:18:25 +020047 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 Vasut09b93a62019-06-11 04:51:15 +020051
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +090052endif # if NET