Use -ENETUNREACH to mean "no reachable network device exists, don't bother
authorMichael Brown <mcb30@etherboot.org>
Sun, 14 Jan 2007 16:22:10 +0000 (16:22 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sun, 14 Jan 2007 16:22:10 +0000 (16:22 +0000)
retrying".

src/net/ipv4.c
src/net/ipv6.c

index 1155ad9..f648651 100644 (file)
@@ -384,7 +384,7 @@ static int ipv4_tx ( struct pk_buff *pkb,
        }
        if ( ! netdev ) {
                DBG ( "IPv4 has no route to %s\n", inet_ntoa ( iphdr->dest ) );
-               rc = -EHOSTUNREACH;
+               rc = -ENETUNREACH;
                goto err;
        }
 
index b158254..e38e314 100644 (file)
@@ -239,7 +239,7 @@ static int ipv6_tx ( struct pk_buff *pkb,
        /* No network interface identified */
        if ( !netdev ) {
                DBG ( "No route to host %s\n", inet6_ntoa ( ip6hdr->dest ) );
-               rc = -EHOSTUNREACH;
+               rc = -ENETUNREACH;
                goto err;
        }