Warn when net device on an active route is not open.
authorMichael Brown <mcb30@etherboot.org>
Wed, 10 Jan 2007 20:58:36 +0000 (20:58 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 10 Jan 2007 20:58:36 +0000 (20:58 +0000)
src/usr/route.c

index b2804ce..b7f02f5 100644 (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" );
        }
 }