mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
Use NIC's connect method.
This commit is contained in:
@@ -236,9 +236,15 @@ struct nic *nic = &dev.nic;
|
|||||||
/*
|
/*
|
||||||
* Find out what our boot parameters are
|
* Find out what our boot parameters are
|
||||||
*/
|
*/
|
||||||
static int nic_load_configuration(struct dev *dev __unused)
|
static int nic_load_configuration ( struct dev *dev ) {
|
||||||
{
|
struct nic *nic = &dev->nic;
|
||||||
int server_found;
|
int server_found;
|
||||||
|
|
||||||
|
if ( ! nic->nic_op->connect ( nic ) ) {
|
||||||
|
printf ( "No connection to network\n" );
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Find a server to get BOOTP reply from */
|
/* Find a server to get BOOTP reply from */
|
||||||
#ifdef RARP_NOT_BOOTP
|
#ifdef RARP_NOT_BOOTP
|
||||||
printf("Searching for server (RARP)...");
|
printf("Searching for server (RARP)...");
|
||||||
|
|||||||
Reference in New Issue
Block a user