[syslinux] tftpd error message (File not found)

Matthew J Fletcher mfletcher at serck-controls.co.uk
Fri Mar 12 08:21:16 PST 2004


Hi,

when i look in my syslog i see.

(syslog)
Mar 12 04:40:49 linuxdev in.tftpd[15218]: RRQ from 10.1.5.121 filename 
scx.elf.gz
Mar 12 04:40:49 linuxdev in.tftpd[15218]: sending NAK (1, File not found) to 
10.1.5.121

here my client has asked for a file, and tftpd has said that it does not exist 
in its path (or cannot access it).

looking in the tftpd.c (from 0.36) i see that on line 779 this error can be 
caused.

<snip>
      ecode = (*pf->f_validate)(filename, tp_opcode, pf, &errmsgptr);
      if (ecode) {
	nak(ecode, errmsgptr);
	exit(0);
      }
 <snip>

i run the tftpd server from xinetd as root, so it cannot be a permissions 
problem (i believe ?).

(/etc/xinetd.d/tftp)
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -vvvvv -s /home/scxnucleus/ScxV6 -T 4000000 
-r blksize -r blksize2 -r tsize -r timeout -r utimeout
        disable                 = no

also if i restart the tftpd service '/etc/inet.d/xinetd restart'

the client can then load the file correctly, and i see in syslog

(syslog)
RRQ from 10.1.5.121 filename scx.elf.gz


regards

---

Matthew J Fletcher
Embedded Software
Serck Controls Ltd
---

**********************************************************************
Serck Controls Ltd, Rowley Drive, Coventry, CV3 4FH, UK
Tel: 44 (0) 24 7630 5050   Fax: 44 (0) 24 7630 2437
Web: www.serck-controls.com  Admin: post at serck-controls.co.uk
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the above.  Any views or opinions presented are solely those of the
author and do not necessarily represent those of Serck Controls Ltd.
Please note that Serck Controls Ltd is able to, and reserves the right
to, monitor e-mail communications passing through its network.
This email has been checked for viruses.  Serck Controls Ltd shall not
be responsible for damage caused by any undetected virus.
**********************************************************************
Serck Controls Ltd is a subsidiary of Serck Controls Pty. Ltd.
Registered in England No. 4353634.
**********************************************************************


******************************************************************
This message has been checked for all known viruses by MessageLabs
******************************************************************




More information about the Syslinux mailing list