This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: TFTP problem
- To: Marek Łącki <lacki at rts dot com dot pl>
- Subject: Re: [ECOS] TFTP problem
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 05 Jun 2001 13:58:16 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <001a01c0ed86$f602e7c0$1400a8c0@rts.com.pl>
Marek Łącki wrote:
>
> Marek ??cki wrote:
> Hi
> I have problem with TFTP client . I created server and client tftp on two
> MPC 860. When I connected to server with another client ( from Cygwin) all
> wroked correctly but if I used eCos tftp client and try to get a file , I
> coudn't do it. When anlalised a net packets , I saw that client sent a
> request and server responsed. Server sent a packet ( file) to client but
> client coudn't receive it. Function tftp_get returned -1 and the *err
> argument
> I passed to tftp_get() = 8 (Time out) ; What is wrong ???
Looks like it timed out ;-).
The TFTP client waits 5 seconds before timing out an initial connection. If
you edit net/tcpip/current/include/tftp_support.h, and incrase
TFTP_TIMEOUT_PERIOD it might help, if your server isn't replying fast
enough.
If that doesn't help, you should probably try debugging tftp_get().
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/