Explorar el Código

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

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
de042993c0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      src/usr/route.c

+ 2
- 0
src/usr/route.c Ver fichero

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

Loading…
Cancelar
Guardar