Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Some improvements to the "bare" structure of ibft handling (http://www.linux-archive.org/debian-kernel/152816-some-improvements-bare-structure-ibft-handling.html)

Martin Sivak 09-02-2008 04:06 PM

Some improvements to the "bare" structure of ibft handling
 
---
loader2/net.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/loader2/net.c b/loader2/net.c
index cb6785d..7c0d948 100644
--- a/loader2/net.c
+++ b/loader2/net.c
@@ -2134,12 +2134,16 @@ int chooseNetworkInterface(struct loaderData_s * loaderData) {



- if ((loaderData->netDev && (loaderData->netDev_set == 1)) &&
+ while((loaderData->netDev && (loaderData->netDev_set == 1)) &&
!strcmp(loaderData->netDev, "ibft")){
char *devmacaddr = NULL;
char *ibftmacaddr = "";

/* TODO get MAC from the iBFT table */
+ if(0){ /* TODO iBFT not present or error */
+ /* lookForLink = 0; is the w/o iBFT default link or ask? */
+ break;
+ }

logMessage(INFO, "looking for iBFT configured device with link");
lookForLink = 1;
@@ -2162,6 +2166,8 @@ int chooseNetworkInterface(struct loaderData_s * loaderData) {
free(devmacaddr);
}
}
+
+ break;
}

if ((loaderData->netDev && (loaderData->netDev_set == 1)) &&
--
1.5.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 12:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.