Browse Source

Use -ENETUNREACH to mean "no reachable network device exists, don't bother

retrying".
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
c953c1a1c3
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/net/ipv4.c
  2. 1
    1
      src/net/ipv6.c

+ 1
- 1
src/net/ipv4.c View File

384
 	}
384
 	}
385
 	if ( ! netdev ) {
385
 	if ( ! netdev ) {
386
 		DBG ( "IPv4 has no route to %s\n", inet_ntoa ( iphdr->dest ) );
386
 		DBG ( "IPv4 has no route to %s\n", inet_ntoa ( iphdr->dest ) );
387
-		rc = -EHOSTUNREACH;
387
+		rc = -ENETUNREACH;
388
 		goto err;
388
 		goto err;
389
 	}
389
 	}
390
 
390
 

+ 1
- 1
src/net/ipv6.c View File

239
 	/* No network interface identified */
239
 	/* No network interface identified */
240
 	if ( !netdev ) {
240
 	if ( !netdev ) {
241
 		DBG ( "No route to host %s\n", inet6_ntoa ( ip6hdr->dest ) );
241
 		DBG ( "No route to host %s\n", inet6_ntoa ( ip6hdr->dest ) );
242
-		rc = -EHOSTUNREACH;
242
+		rc = -ENETUNREACH;
243
 		goto err;
243
 		goto err;
244
 	}
244
 	}
245
 
245
 

Loading…
Cancel
Save