Explorar el Código

Use NIC's connect method.

tags/v0.9.3
Michael Brown hace 19 años
padre
commit
266dae4034
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8
    2
      src/core/nic.c

+ 8
- 2
src/core/nic.c Ver fichero

@@ -236,9 +236,15 @@ struct nic *nic = &dev.nic;
236 236
 /*
237 237
  * Find out what our boot parameters are
238 238
  */
239
-static int nic_load_configuration(struct dev *dev __unused)
240
-{
239
+static int nic_load_configuration ( struct dev *dev ) {
240
+	struct nic *nic = &dev->nic;
241 241
 	int server_found;
242
+
243
+	if ( ! nic->nic_op->connect ( nic ) ) {
244
+		printf ( "No connection to network\n" );
245
+		return 0;
246
+	}
247
+
242 248
 	/* Find a server to get BOOTP reply from */
243 249
 #ifdef	RARP_NOT_BOOTP
244 250
 	printf("Searching for server (RARP)...");

Loading…
Cancelar
Guardar