diff options
| author | Michael Brown | 2007-01-10 21:58:36 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-10 21:58:36 +0100 |
| commit | de042993c027a1a3d90e041a4124f7c555a96a51 (patch) | |
| tree | 2e797469e1fe99cd2907c74cbef06aefffe713e9 /src | |
| parent | Add "route" command (which currently only displays the routing table; it (diff) | |
| download | ipxe-de042993c027a1a3d90e041a4124f7c555a96a51.tar.gz ipxe-de042993c027a1a3d90e041a4124f7c555a96a51.tar.xz ipxe-de042993c027a1a3d90e041a4124f7c555a96a51.zip | |
Warn when net device on an active route is not open.
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/route.c b/src/usr/route.c index b2804ce76..b7f02f579 100644 --- a/src/usr/route.c +++ b/src/usr/route.c @@ -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" ); } } |
