mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
Use -ENETUNREACH to mean "no reachable network device exists, don't bother
retrying".
This commit is contained in:
@@ -384,7 +384,7 @@ static int ipv4_tx ( struct pk_buff *pkb,
|
|||||||
}
|
}
|
||||||
if ( ! netdev ) {
|
if ( ! netdev ) {
|
||||||
DBG ( "IPv4 has no route to %s\n", inet_ntoa ( iphdr->dest ) );
|
DBG ( "IPv4 has no route to %s\n", inet_ntoa ( iphdr->dest ) );
|
||||||
rc = -EHOSTUNREACH;
|
rc = -ENETUNREACH;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ static int ipv6_tx ( struct pk_buff *pkb,
|
|||||||
/* No network interface identified */
|
/* No network interface identified */
|
||||||
if ( !netdev ) {
|
if ( !netdev ) {
|
||||||
DBG ( "No route to host %s\n", inet6_ntoa ( ip6hdr->dest ) );
|
DBG ( "No route to host %s\n", inet6_ntoa ( ip6hdr->dest ) );
|
||||||
rc = -EHOSTUNREACH;
|
rc = -ENETUNREACH;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user