incorrect connect() behavior

2004-05-30 Thread Gleb Smirnoff
Dear networkers, there is a problem in connect() syscall, which can be reproduced on a box running without default route. According to POSIX, connect() must return if ENETUNREACH, if a route to destination was not found. http://www.opengroup.org/onlinepubs/95399/functions/connect.html

incorrect connect() behavior

2003-12-11 Thread Gleb Smirnoff
Dear sirs, as it is described in connect(2): ERRORS The connect() call fails if: ... [ENETUNREACH] The network is not reachable from this host. [EHOSTUNREACH] The remote host is not reachable from this host. However, this sample program (attached) shows that conn