[U-Boot] ping timeout

Wolfgang Denk wd at denx.de
Fri Oct 23 15:45:16 CEST 2009


Dear "David Collier",

In message <memo.20091023110946.2092M at postmaster+dexdyne.com.cix.co.uk> you wrote:
>
> But there's a difference between "is the server there" and "please TFTP
> from it - and the timeouts for one are not the same as the timeout for
> another.

But with a ping you do NOT check if the (TFTP) server is there. All
you check if the host is up and running. Eventually there is no TFTP
server running on it.

> If the server is present, I'm happy to use relaxed timeouts for the
> actual transfer.

Then test with a short-timeout TFTP request, and if this fails
becoause of other reasons than "server not responding" then retry with
longer timeouts. Feel free to define your own policy.

> But I'd like a quicker way of just checking whether I'm on the
> "production test network" or in a user site in the field.

I don't see why that would be not possible or even difficult with the
current code.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Imagination is more important than knowledge.      -- Albert Einstein


More information about the U-Boot mailing list