瀏覽代碼

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

retrying".
tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
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…
取消
儲存