diff options
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 35cf0dbd9..f52e49d51 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -18,6 +18,39 @@ | |||
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 | |||
22 | //usage:#define tftp_trivial_usage | ||
23 | //usage: "[OPTIONS] HOST [PORT]" | ||
24 | //usage:#define tftp_full_usage "\n\n" | ||
25 | //usage: "Transfer a file from/to tftp server\n" | ||
26 | //usage: "\nOptions:" | ||
27 | //usage: "\n -l FILE Local FILE" | ||
28 | //usage: "\n -r FILE Remote FILE" | ||
29 | //usage: IF_FEATURE_TFTP_GET( | ||
30 | //usage: "\n -g Get file" | ||
31 | //usage: ) | ||
32 | //usage: IF_FEATURE_TFTP_PUT( | ||
33 | //usage: "\n -p Put file" | ||
34 | //usage: ) | ||
35 | //usage: IF_FEATURE_TFTP_BLOCKSIZE( | ||
36 | //usage: "\n -b SIZE Transfer blocks of SIZE octets" | ||
37 | //usage: ) | ||
38 | //usage: | ||
39 | //usage:#define tftpd_trivial_usage | ||
40 | //usage: "[-cr] [-u USER] [DIR]" | ||
41 | //usage:#define tftpd_full_usage "\n\n" | ||
42 | //usage: "Transfer a file on tftp client's request\n" | ||
43 | //usage: "\n" | ||
44 | //usage: "tftpd should be used as an inetd service.\n" | ||
45 | //usage: "tftpd's line for inetd.conf:\n" | ||
46 | //usage: " 69 dgram udp nowait root tftpd tftpd /files/to/serve\n" | ||
47 | //usage: "It also can be ran from udpsvd:\n" | ||
48 | //usage: " udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve\n" | ||
49 | //usage: "\nOptions:" | ||
50 | //usage: "\n -r Prohibit upload" | ||
51 | //usage: "\n -c Allow file creation via upload" | ||
52 | //usage: "\n -u Access files as USER" | ||
53 | |||
21 | #include "libbb.h" | 54 | #include "libbb.h" |
22 | 55 | ||
23 | #if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT | 56 | #if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT |