소스 검색

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

retrying".
tags/v0.9.3
Michael Brown 17 년 전
부모
커밋
c953c1a1c3
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      src/net/ipv4.c
  2. 1
    1
      src/net/ipv6.c

+ 1
- 1
src/net/ipv4.c 파일 보기

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

+ 1
- 1
src/net/ipv6.c 파일 보기

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

Loading…
취소
저장