1# Socket TFTP Library for Zephyr
2
3# Copyright (c) 2020 InnBlue
4# SPDX-License-Identifier: Apache-2.0
5
6config TFTP_LIB
7	bool "Socket TFTP Library Support [EXPERIMENTAL]"
8	select NET_SOCKETS
9	select EXPERIMENTAL
10	help
11	  Enable the Zephyr TFTP Library
12
13if TFTP_LIB
14
15module=TFTP
16module-dep=NET_LOG
17module-str=Log level for TFTP
18module-help=Enables tftp debug messages.
19source "subsys/net/Kconfig.template.log_config.net"
20
21config TFTPC_REQUEST_TIMEOUT
22	int "Maximum amount of time the TFTP Client will wait for a response from the server."
23	default 5000
24	help
25	  Maximum amount of time (in msec) that the TFTP Client will wait for
26	  data from the TFTP Server. Once this time has elapsed, the TFTP Client
27	  will assume that the Server failed and close the connection.
28
29config TFTPC_REQUEST_RETRANSMITS
30	int "Number of times the TFTP Client will retransmit the request to the server."
31	default 5
32	help
33	  Once the TFTP Client sends out a request, it will wait
34	  TFTPC_REQUEST_TIMEOUT msecs for the data to arrive from the TFTP Server.
35	  However, if it doesn't arrive within the given time we will re-transmit
36	  the request to the server in hopes that the server will respond within
37	  time to this request. This number dictates the number of times we will
38	  do re-tx of our request before giving up and exiting.
39
40endif # TFTP_LIB
41