need tftpd

Denys Vlasenko vda.linux at googlemail.com
Thu May 8 09:46:40 PDT 2008


On Wednesday 07 May 2008 13:10, Pascal Bellard wrote:
> Tftpd is launched by inetd
> You may need this patch for PXE
> http://hg.slitaz.org/wok/raw-file/7dfa359d2345/busybox/stuff/busybox-1.10.1-tftp.u

This patch adds support for "tsize" option.

Can you make it so that it does not add any code if tftpd
applet is not selected?

Please document in the comment the on-the-wire format
of tsize option - unlike blksize, it's not obvious
(to me) what _value_ is sent for this option?

Can tsize support be made optional? it grows applet by 10%:

function                                             old     new   delta
tftp_protocol                                       1464    1670    +206
tftp_get_option                                        -     102    +102
tftpd_main                                           488     557     +69
tftp_main                                            252     254      +2
tftp_get_blksize                                      97       -     -97
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/0 up/down: 379/-97)           Total: 282 bytes

Overall - thanks Pascal for your contributions!
--
vda


More information about the busybox mailing list