Subject: tftpd / inetd problem
To: None <netbsd-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: netbsd-users
Date: 04/08/2005 15:20:16
Hi,
I'm having problems to use tftp on a netbsd-2 (todays sources) i386
system.
$ grep ^tftp /etc/inetd.conf
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
$ ls -l /tftpboot
total 2
-rw-r--r-- 1 root wheel 5 Apr 8 14:16 test
$ sudo /usr/sbin/inetd -d -l
ADD : tftp proto=udp, wait.max=1.40, user:group=root:(null) builtin=0 server=/usr/libexec/tftpd policy=
[...]
Now I start tftp on the same host:
$ tftp bart
tftp> get test
Transfer timed out.
tftp> quit
Just before the clien times out (after about 25 seconds) inetd prints:
someone wants tftp
10605 execl /usr/libexec/tftpd
10605 reaped, status 0
restored tftp, fd 5
and syslogd logs:
Apr 8 14:58:38 bart tftpd[7625]: 192.168.12.104: read request for test: success
Indeed, the file was successfully transferred:
$ ls -l test
-rw-r--r-- 1 jukka jukka 5 Apr 8 14:55 test
Tracing the tftp client revealed it was (repeating) doing
792 tftp RET recvfrom RESTART
792 tftp PSIG SIGALRM caught handler=0x804b590 mask=())
792 tftp CALL __sigprocmask14(3,0x804de78,0)
792 tftp RET __sigprocmask14 0
792 tftp CALL sendto(3,0x804dc40,4,0,0xbfbff440,0x10)
792 tftp GIO fd 3 wrote 4 bytes
"\0\^D\0\^A"
792 tftp RET sendto 4
792 tftp CALL setitimer(0,0xbfbff370,0xbfbff360)
792 tftp RET setitimer 0
792 tftp CALL recvfrom(3,0x805de64,0x204,0,0xbfbff4d0,0xbfbff3bc)
until timing out. However, I've no idea what this tells me...
Hmm, any hints? Why does the tranfer time out? What should I try next?
TIA, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~