diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 14:09:10 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 14:09:10 +0200 |
commit | 9cbf43eb8a7e0186144e95d7b244e0c69b0e9189 (patch) | |
tree | a3046afa1474172799189190a26ac89223e17f10 /sysdep/unix | |
parent | b6c9d8eb2e255b65f29efd1acfd35a4277b3bf14 (diff) | |
download | bird-9cbf43eb8a7e0186144e95d7b244e0c69b0e9189.tar bird-9cbf43eb8a7e0186144e95d7b244e0c69b0e9189.zip |
Don't report refused connections.
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 996b971..449f808 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -628,7 +628,8 @@ sk_open(sock *s) case SK_TCP_ACTIVE: if (connect(fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0) sk_tcp_connected(s); - else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS) + else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS && + errno != ECONNREFUSED && errno != EHOSTUNREACH) ERR("connect"); break; case SK_TCP_PASSIVE: |