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