Ver código fonte

Use NIC's connect method.

tags/v0.9.3
Michael Brown 19 anos atrás
pai
commit
266dae4034
1 arquivos alterados com 8 adições e 2 exclusões
  1. 8
    2
      src/core/nic.c

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

@@ -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)...");

Carregando…
Cancelar
Salvar