aboutsummaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c72
1 files changed, 72 insertions, 0 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index e879c4674..ed8672025 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -18,6 +18,78 @@
18 * 18 *
19 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 19 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
20 */ 20 */
21//config:config TFTP
22//config: bool "tftp"
23//config: default y
24//config: help
25//config: This enables the Trivial File Transfer Protocol client program. TFTP
26//config: is usually used for simple, small transfers such as a root image
27//config: for a network-enabled bootloader.
28//config:
29//config:config TFTPD
30//config: bool "tftpd"
31//config: default y
32//config: help
33//config: This enables the Trivial File Transfer Protocol server program.
34//config: It expects that stdin is a datagram socket and a packet
35//config: is already pending on it. It will exit after one transfer.
36//config: In other words: it should be run from inetd in nowait mode,
37//config: or from udpsvd. Example: "udpsvd -E 0 69 tftpd DIR"
38//config:
39//config:comment "Common options for tftp/tftpd"
40//config: depends on TFTP || TFTPD
41//config:
42//config:config FEATURE_TFTP_GET
43//config: bool "Enable 'tftp get' and/or tftpd upload code"
44//config: default y
45//config: depends on TFTP || TFTPD
46//config: help
47//config: Add support for the GET command within the TFTP client. This allows
48//config: a client to retrieve a file from a TFTP server.
49//config: Also enable upload support in tftpd, if tftpd is selected.
50//config:
51//config: Note: this option does _not_ make tftpd capable of download
52//config: (the usual operation people need from it)!
53//config:
54//config:config FEATURE_TFTP_PUT
55//config: bool "Enable 'tftp put' and/or tftpd download code"
56//config: default y
57//config: depends on TFTP || TFTPD
58//config: help
59//config: Add support for the PUT command within the TFTP client. This allows
60//config: a client to transfer a file to a TFTP server.
61//config: Also enable download support in tftpd, if tftpd is selected.
62//config:
63//config:config FEATURE_TFTP_BLOCKSIZE
64//config: bool "Enable 'blksize' and 'tsize' protocol options"
65//config: default y
66//config: depends on TFTP || TFTPD
67//config: help
68//config: Allow tftp to specify block size, and tftpd to understand
69//config: "blksize" and "tsize" options.
70//config:
71//config:config FEATURE_TFTP_PROGRESS_BAR
72//config: bool "Enable tftp progress meter"
73//config: default y
74//config: depends on TFTP && FEATURE_TFTP_BLOCKSIZE
75//config: help
76//config: Show progress bar.
77//config:
78//config:config TFTP_DEBUG
79//config: bool "Enable debug"
80//config: default n
81//config: depends on TFTP || TFTPD
82//config: help
83//config: Make tftp[d] print debugging messages on stderr.
84//config: This is useful if you are diagnosing a bug in tftp[d].
85
86//applet:#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT
87//applet:IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP))
88//applet:IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
89//applet:#endif
90
91//kbuild:lib-$(CONFIG_TFTP) += tftp.o
92//kbuild:lib-$(CONFIG_TFTPD) += tftp.o
21 93
22//usage:#define tftp_trivial_usage 94//usage:#define tftp_trivial_usage
23//usage: "[OPTIONS] HOST [PORT]" 95//usage: "[OPTIONS] HOST [PORT]"