summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-17 09:10:39 +0000
committerDenis Vlasenko2008-03-17 09:10:39 +0000
commitaa9b1828b91bc4b60f1164b7929a6a0ac091419e (patch)
tree31a2278e3998160a7c40ac5882736a2f48768a2d /include
parent1d42665b6b0571b9fa5d3b10fbf2dd03382f0ba2 (diff)
downloadbusybox-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.zip
busybox-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.tar.gz
tftpd: new applet (mostly using existing code for tftp)
function old new delta tftp_protocol - 1173 +1173 tftpd_main - 500 +500 tftp_option_get - 102 +102 packed_usage 23650 23662 +12 applet_names 1809 1815 +6 applet_main 1100 1104 +4 applet_nameofs 550 552 +2 tftp_main 302 301 -1 get_nport 32 - -32 tftp 1172 - -1172 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 4/1 up/down: 1799/-1205) Total: 594 bytes text data bss dec hex filename 796479 662 7420 804561 c46d1 busybox_old 797153 662 7420 805235 c4973 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h8
2 files changed, 8 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h
index d4b6dbe..c2a089c 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -355,6 +355,7 @@ USE_TELNETD(APPLET(telnetd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_TEST(APPLET_NOEXEC(test, test, _BB_DIR_USR_BIN, _BB_SUID_NEVER, test))
#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT
USE_TFTP(APPLET(tftp, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
+USE_TFTPD(APPLET(tftpd, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
#endif
USE_TIME(APPLET(time, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_TOP(APPLET(top, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index 507a52d..8f563f5 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -3961,7 +3961,7 @@
#define tftp_trivial_usage \
"[OPTION]... HOST [PORT]"
#define tftp_full_usage \
- "Transfer a file from/to tftp server using \"octet\" mode\n" \
+ "Transfer a file from/to tftp server\n" \
"\nOptions:" \
"\n -l FILE Local FILE" \
"\n -r FILE Remote FILE" \
@@ -3974,6 +3974,12 @@
USE_FEATURE_TFTP_BLOCKSIZE( \
"\n -b SIZE Transfer blocks of SIZE octets" \
)
+
+#define tftpd_trivial_usage \
+ "[DIR]"
+#define tftpd_full_usage \
+ "Transfer a file on request from a tftp client" \
+
#define time_trivial_usage \
"[OPTION]... COMMAND [ARGS...]"
#define time_full_usage \