From c953c1a1c3b7bec62a3a622a93ec641417bed656 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 14 Jan 2007 16:22:10 +0000 Subject: [PATCH 1/1] Use -ENETUNREACH to mean "no reachable network device exists, don't bother retrying". --- src/net/ipv4.c | 2 +- src/net/ipv6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 1155ad90..f6486514 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -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; } diff --git a/src/net/ipv6.c b/src/net/ipv6.c index b158254f..e38e314a 100644 --- a/src/net/ipv6.c +++ b/src/net/ipv6.c @@ -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; } -- 2.17.1