zephyr/subsys/net/lib/tftp/Kconfig
Bilal Wasim 220b664617 net: tftp: Adding support for TFTP Client.
Adding RFC1350 compliant support for TFTP Client in Zephyr. The
current implementation is minimal and only supports the ability
to get a file from the server.

Things for the future include support for putting files to
server and adding support for RFC2347.

Signed-off-by: Bilal Wasim <bilalwasim676@gmail.com>
2020-04-30 14:19:46 +03:00

41 lines
1.3 KiB
Plaintext

# Socket TFTP Library for Zephyr
# Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0
config TFTP_LIB
bool "Socket TFTP Library Support [EXPERIMENTAL]"
select NET_SOCKETS
select NET_SOCKETS_POSIX_NAMES
help
Enable the Zephyr TFTP Library
if TFTP_LIB
module=TFTP
module-dep=NET_LOG
module-str=Log level for TFTP
module-help=Enables tftp debug messages.
source "subsys/net/Kconfig.template.log_config.net"
config TFTPC_REQUEST_TIMEOUT
int "Maximum amount of time the TFTP Client will wait for a response from the server."
default 5000
help
Maximum amount of time (in msec) that the TFTP Client will wait for
data from the TFTP Server. Once this time has elasped, the TFTP Client
will assume that the Server failed and close the connection.
config TFTPC_REQUEST_RETRANSMITS
int "Number of times the TFTP Client will retransmit the request to the server."
default 5
help
Once the TFTP Client sends out a request, it will wait
TFTPC_REQUEST_TIMEOUT msecs for the data to arrive from the TFTP Server.
However, if it doesn't arrive within the given time we will re-transmit
the request to the server in hopes that the server will respond within
time to this request. This number dictates the number of times we will
do re-tx of our request before giving up and exiting.
endif # TFTP_LIB