Browse Source

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

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
de042993c0
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/usr/route.c

+ 2
- 0
src/usr/route.c View File

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

Loading…
Cancel
Save