mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 02:20:19 +03:00
Warn when net device on an active route is not open.
This commit is contained in:
@@ -36,6 +36,8 @@ void route ( void ) {
|
|||||||
printf ( "%s", inet_ntoa ( miniroute->netmask ) );
|
printf ( "%s", inet_ntoa ( miniroute->netmask ) );
|
||||||
if ( miniroute->gateway.s_addr != INADDR_NONE )
|
if ( miniroute->gateway.s_addr != INADDR_NONE )
|
||||||
printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
|
printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
|
||||||
|
if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) )
|
||||||
|
printf ( " (inaccessible)" );
|
||||||
printf ( "\n" );
|
printf ( "\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user