浏览代码

Warn when net device on an active route is not open.

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
de042993c0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/usr/route.c

+ 2
- 0
src/usr/route.c 查看文件

@@ -36,6 +36,8 @@ void route ( void ) {
36 36
 		printf ( "%s", inet_ntoa ( miniroute->netmask ) );
37 37
 		if ( miniroute->gateway.s_addr != INADDR_NONE )
38 38
 			printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
39
+		if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) )
40
+			printf ( " (inaccessible)" );
39 41
 		printf ( "\n" );
40 42
 	}
41 43
 }

正在加载...
取消
保存