0

我使用以下命令在嵌入式系统上配置 tftpd:

# udpsvd -E 0 69 tftpd -c /flash0/app/Binary/

当我使用 linux 应用程序(tftp、atftp)作为客户端时,一切正常。但是使用 Windows 工具(Ph.Jounin 的 TFTPD32)- 在公司中首选我无法将文件放入服务器。

正确的跟踪(几行):

# sending 4 bytes
00 04 00 00 
received 516 bytes: 0003 0001
sending 4 bytes
00 04 00 01 
received 516 bytes: 0003 0002
sending 4 bytes
00 04 00 02 
received 516 bytes: 0003 0003
sending 4 bytes

错误跟踪:

# sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
sending 10 bytes
00 06 74 73 69 7a 65 00 30 00 
received 516 bytes: 0003 0001
tftpd: timeout
tftpd: malformed packet
tftpd: malformed packet
4

1 回答 1

0

好的。这是 tftp 实现依赖问题。我使用 ddwrt/busybox 发行版中的一个。我需要禁用 FEATURE_TFTP_BLOCKSIZE,并避免使用 tftp_get_option("blksize"...)。

于 2012-04-18T06:25:44.957 回答