Use -ENETUNREACH to mean "no reachable network device exists, don't bother
[gpxe.git] / src / net / ipv4.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;
        }