]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Ignore warning when BGP peer is unreachable.
authorOndrej Zajicek <santiago@crfreenet.org>
Mon, 2 Aug 2010 23:12:43 +0000 (01:12 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 2 Aug 2010 23:12:43 +0000 (01:12 +0200)
sysdep/unix/io.c

index c1837f09b08bc54fbc05de9f54559cbcc686c73a..a552a2a67dbf7f8a9d575189f2f038b5a4e5752d 100644 (file)
@@ -1134,7 +1134,7 @@ sk_open(sock *s)
       if (connect(fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0)
        sk_tcp_connected(s);
       else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS &&
-              errno != ECONNREFUSED && errno != EHOSTUNREACH)
+              errno != ECONNREFUSED && errno != EHOSTUNREACH && errno != ENETUNREACH)
        ERR("connect");
       break;
     case SK_TCP_PASSIVE: