Added iBFT construction to iSCSI boot test

This commit is contained in:
Michael Brown
2006-08-27 23:54:20 +00:00
parent 22511400c7
commit 7e95980858
2 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -3,14 +3,15 @@
#include <vsprintf.h>
#include <gpxe/netdevice.h>
#include <gpxe/iscsi.h>
#include <gpxe/ibft.h>
#include <int13.h>
static struct iscsi_device test_iscsidev;
int test_iscsiboot ( const char *initiator_iqn,
struct sockaddr_tcpip *target,
const char *target_iqn ) {
struct sockaddr_in *sin;
const char *target_iqn,
struct net_device *netdev ) {
struct int13_drive drive;
int rc;
@@ -26,6 +27,8 @@ int test_iscsiboot ( const char *initiator_iqn,
return rc;
}
ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
memset ( &drive, 0, sizeof ( drive ) );
drive.blockdev = &test_iscsidev.scsi.blockdev;
register_int13_drive ( &drive );