diff options
author | Michael Brown | 2005-04-13 02:18:35 +0200 |
---|---|---|
committer | Michael Brown | 2005-04-13 02:18:35 +0200 |
commit | 266dae40344a8d84fdef98fd5b904ce28fa2fe28 (patch) | |
tree | f1bb2b021f75b9362fbe904e23fb352c07205e6c /src/core/nic.c | |
parent | Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139) (diff) | |
download | ipxe-266dae40344a8d84fdef98fd5b904ce28fa2fe28.tar.gz ipxe-266dae40344a8d84fdef98fd5b904ce28fa2fe28.tar.xz ipxe-266dae40344a8d84fdef98fd5b904ce28fa2fe28.zip |
Use NIC's connect method.
Diffstat (limited to 'src/core/nic.c')
-rw-r--r-- | src/core/nic.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/nic.c b/src/core/nic.c index 59344f4a..b8ce252b 100644 --- a/src/core/nic.c +++ b/src/core/nic.c @@ -236,9 +236,15 @@ struct nic *nic = &dev.nic; /* * 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; + + if ( ! nic->nic_op->connect ( nic ) ) { + printf ( "No connection to network\n" ); + return 0; + } + /* Find a server to get BOOTP reply from */ #ifdef RARP_NOT_BOOTP printf("Searching for server (RARP)..."); |