ソースを参照

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

tags/v0.9.3
Michael Brown 17年前
コミット
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
 }

読み込み中…
キャンセル
保存