blob: 7a2d145018815c622dec7d37fba3753a3819dc46 [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
Philippe Reynesb43ea1b2020-09-18 14:13:00 +020011config 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 Ford3275f262020-07-03 09:00:14 -050017config 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 Hershbergerbef10142015-05-04 14:55:13 -050027config NET_RANDOM_ETHADDR
28 bool "Random ethaddr if unset"
29 help
30 Selecting this will allow the Ethernet interface to function
31 even when the ethaddr variable for that interface is unset.
32 A new MAC address will be generated on every boot and it will
33 not be added to the environment.
34
Bernhard Nortmann26660742015-09-14 15:29:46 +020035config NETCONSOLE
36 bool "NetConsole support"
37 help
38 Support the 'nc' input/output device for networked console.
39 See README.NetConsole for details.
40
Marek Vasut3f6bcdf2019-06-11 04:51:14 +020041config IP_DEFRAG
42 bool "Support IP datagram reassembly"
Marek Vasut3f6bcdf2019-06-11 04:51:14 +020043 help
44 Selecting this will enable IP datagram reassembly according
45 to the algorithm in RFC815.
46
Rasmus Villemoes215df012020-02-07 15:17:42 +000047config NET_MAXDEFRAG
48 int "Size of buffer used for IP datagram reassembly"
49 depends on IP_DEFRAG
50 default 16384
51 range 1024 65536
52 help
53 This defines the size of the statically allocated buffer
54 used for reassembly, and thus an upper bound for the size of
55 IP datagrams that can be received.
56
Marek Vasutb618b372019-06-11 04:51:15 +020057config TFTP_BLOCKSIZE
58 int "TFTP block size"
Andre Przywara16cdc2d2019-11-23 17:58:59 +000059 default 1468
Marek Vasutb618b372019-06-11 04:51:15 +020060 help
61 Default TFTP block size.
Patrick Delaunay421de7f2020-04-22 14:18:25 +020062 The MTU is typically 1500 for ethernet, so a TFTP block of
63 1468 (MTU minus eth.hdrs) provides a good throughput with
64 almost-MTU block sizes.
65 You can also activate CONFIG_IP_DEFRAG to set a larger block.
Marek Vasutb618b372019-06-11 04:51:15 +020066
Ramon Friedcc6b87e2020-07-18 23:31:46 +030067config TFTP_WINDOWSIZE
68 int "TFTP window size"
69 default 1
70 help
71 Default TFTP window size.
72 RFC7440 defines an optional window size of transmits,
73 before an ack response is required.
74 The default TFTP implementation implies a window size of 1.
75
Tero Kristo25094932021-05-12 11:03:04 +030076config TFTP_TSIZE
77 bool "Track TFTP transfers based on file size option"
78 depends on CMD_TFTPBOOT
79 default y if (ARCH_OMAP2PLUS || ARCH_K3)
80 help
81 By default, TFTP progress bar is increased for each received UDP
82 frame, which can lead into long time being spent for sending
83 data over the UART. Enabling this option, TFTP queries the file
84 size from server, and if supported, limits the progress bar to
85 50 characters total which fits on single line.
86
Lyle Franklinc8e251f2019-08-05 06:23:42 -040087config SERVERIP_FROM_PROXYDHCP
88 bool "Get serverip value from Proxy DHCP response"
89 help
90 Allows bootfile config to be fetched from Proxy DHCP server
91 while IP is obtained from main DHCP server.
92
93config SERVERIP_FROM_PROXYDHCP_DELAY_MS
94 int "# of additional milliseconds to wait for ProxyDHCP response"
95 default 100
96 help
97 Amount of additional time to wait for ProxyDHCP response after
98 receiving response from main DHCP server. Has no effect if
99 SERVERIP_FROM_PROXYDHCP is false.
100
Masahiro Yamadaed363232014-09-16 16:32:58 +0900101endif # if NET