This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: TFTP problem


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]