blob: 6874b55aacb5afbef76b45fbb0e9deba34d1dc09 [file] [log] [blame]
Masahiro Yamadaed363232014-09-16 16:32:58 +09001#
2# Network configuration
3#
4
5menuconfig NET
6 bool "Networking support"
Michal Simek3b3ea2c2018-02-26 16:01:02 +01007 default y
Masahiro Yamadaed363232014-09-16 16:32:58 +09008
9if NET
10
Adam Ford3275f262020-07-03 09:00:14 -050011config BOOTP_SEND_HOSTNAME
12 bool "Send hostname to DNS server"
13 help
14 Some DHCP servers are capable to do a dynamic update of a
15 DNS server. To do this, they need the hostname of the DHCP
16 requester.
17 If CONFIG_BOOTP_SEND_HOSTNAME is defined, the content
18 of the "hostname" environment variable is passed as
19 option 12 to the DHCP server.
20
Joe Hershbergerbef10142015-05-04 14:55:13 -050021config NET_RANDOM_ETHADDR
22 bool "Random ethaddr if unset"
23 help
24 Selecting this will allow the Ethernet interface to function
25 even when the ethaddr variable for that interface is unset.
26 A new MAC address will be generated on every boot and it will
27 not be added to the environment.
28
Bernhard Nortmann26660742015-09-14 15:29:46 +020029config NETCONSOLE
30 bool "NetConsole support"
31 help
32 Support the 'nc' input/output device for networked console.
33 See README.NetConsole for details.
34
Marek Vasut3f6bcdf2019-06-11 04:51:14 +020035config IP_DEFRAG
36 bool "Support IP datagram reassembly"
37 default n
38 help
39 Selecting this will enable IP datagram reassembly according
40 to the algorithm in RFC815.
41
Rasmus Villemoes215df012020-02-07 15:17:42 +000042config NET_MAXDEFRAG
43 int "Size of buffer used for IP datagram reassembly"
44 depends on IP_DEFRAG
45 default 16384
46 range 1024 65536
47 help
48 This defines the size of the statically allocated buffer
49 used for reassembly, and thus an upper bound for the size of
50 IP datagrams that can be received.
51
Marek Vasutb618b372019-06-11 04:51:15 +020052config TFTP_BLOCKSIZE
53 int "TFTP block size"
Andre Przywara16cdc2d2019-11-23 17:58:59 +000054 default 1468
Marek Vasutb618b372019-06-11 04:51:15 +020055 help
56 Default TFTP block size.
Patrick Delaunay421de7f2020-04-22 14:18:25 +020057 The MTU is typically 1500 for ethernet, so a TFTP block of
58 1468 (MTU minus eth.hdrs) provides a good throughput with
59 almost-MTU block sizes.
60 You can also activate CONFIG_IP_DEFRAG to set a larger block.
Marek Vasutb618b372019-06-11 04:51:15 +020061
Ramon Friedcc6b87e2020-07-18 23:31:46 +030062config TFTP_WINDOWSIZE
63 int "TFTP window size"
64 default 1
65 help
66 Default TFTP window size.
67 RFC7440 defines an optional window size of transmits,
68 before an ack response is required.
69 The default TFTP implementation implies a window size of 1.
70
Masahiro Yamadaed363232014-09-16 16:32:58 +090071endif # if NET