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