connect(2) behavior with unreacheable hosts

Don don at calis.blacksun.org
Sat Apr 12 09:58:55 PDT 2003


> ICMP Type 11. If the host does not receive this message, then the only
> thing connect() can do is timeout. In that case connect() should return -1
> and errno should return [ETIMEDOUT] or [ENETUNREACH] (I have no idea which
> one).
Actually if ICMP is not working, it should return [ETIMEDOUT]. If ICMP is
working, I am not sure which of those errno value would be returned. This
is just a guess based on the information in connect(2).

-Don


More information about the freebsd-net mailing list