diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:10:39 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:10:39 +0000 |
commit | aa9b1828b91bc4b60f1164b7929a6a0ac091419e (patch) | |
tree | 31a2278e3998160a7c40ac5882736a2f48768a2d /networking/Config.in | |
parent | 1d42665b6b0571b9fa5d3b10fbf2dd03382f0ba2 (diff) | |
download | busybox-w32-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.tar.gz busybox-w32-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.tar.bz2 busybox-w32-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.zip |
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 'networking/Config.in')
-rw-r--r-- | networking/Config.in | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/networking/Config.in b/networking/Config.in index 3c53c1115..729cca148 100644 --- a/networking/Config.in +++ b/networking/Config.in | |||
@@ -774,28 +774,41 @@ config TFTP | |||
774 | is usually used for simple, small transfers such as a root image | 774 | is usually used for simple, small transfers such as a root image |
775 | for a network-enabled bootloader. | 775 | for a network-enabled bootloader. |
776 | 776 | ||
777 | config TFTPD | ||
778 | bool "tftpd" | ||
779 | default n | ||
780 | help | ||
781 | This enables the Trivial File Transfer Protocol server program. | ||
782 | It expects that stdin is a datagram socket and a packet | ||
783 | is already pending on it. It will exit after one transfer. | ||
784 | In other words: it should be run from inetd in nowait mode, | ||
785 | or from udpsvd. Example: "udpsvd -E 0 69 tftpd DIR" | ||
786 | |||
777 | config FEATURE_TFTP_GET | 787 | config FEATURE_TFTP_GET |
778 | bool "Enable \"get\" command" | 788 | bool "Enable \"get\" command" |
779 | default y | 789 | default y |
780 | depends on TFTP | 790 | depends on TFTP || TFTPD |
781 | help | 791 | help |
782 | Add support for the GET command within the TFTP client. This allows | 792 | Add support for the GET command within the TFTP client. This allows |
783 | a client to retrieve a file from a TFTP server. | 793 | a client to retrieve a file from a TFTP server. |
794 | Also enable upload support in tftpd, if tftpd is selected. | ||
784 | 795 | ||
785 | config FEATURE_TFTP_PUT | 796 | config FEATURE_TFTP_PUT |
786 | bool "Enable \"put\" command" | 797 | bool "Enable \"put\" command" |
787 | default y | 798 | default y |
788 | depends on TFTP | 799 | depends on TFTP || TFTPD |
789 | help | 800 | help |
790 | Add support for the PUT command within the TFTP client. This allows | 801 | Add support for the PUT command within the TFTP client. This allows |
791 | a client to transfer a file to a TFTP server. | 802 | a client to transfer a file to a TFTP server. |
803 | Also enable download support in tftpd, if tftpd is selected. | ||
792 | 804 | ||
793 | config FEATURE_TFTP_BLOCKSIZE | 805 | config FEATURE_TFTP_BLOCKSIZE |
794 | bool "Enable \"blocksize\" command" | 806 | bool "Enable \"blksize\" protocol option" |
795 | default n | 807 | default n |
796 | depends on TFTP | 808 | depends on TFTP || TFTPD |
797 | help | 809 | help |
798 | Allow the client to specify the desired block size for transfers. | 810 | Allow tftp to specify block size, and tftpd to understand |
811 | "blksize" option. | ||
799 | 812 | ||
800 | config DEBUG_TFTP | 813 | config DEBUG_TFTP |
801 | bool "Enable debug" | 814 | bool "Enable debug" |