2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 15:21:32 +00:00

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

This commit is contained in:
Michael Brown 2007-01-10 20:58:36 +00:00
parent d45c5e7ce7
commit de042993c0

View File

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