]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't report refused connections.
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 12:09:10 +0000 (12:09 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 12:09:10 +0000 (12:09 +0000)
sysdep/unix/io.c

index 996b97157718e57fa21d20bb4af25571ef2115b0..449f808aff5f2ed08b721e8ca4ef3cfe117add31 100644 (file)
@@ -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: