|
@@ -23,7 +23,8 @@ static int test_dhcp_iscsi_boot ( struct net_device *netdev, char *iscsiname ) {
|
23
|
23
|
struct sockaddr_in sin;
|
24
|
24
|
struct sockaddr_tcpip st;
|
25
|
25
|
} target;
|
26
|
|
-
|
|
26
|
+ unsigned int drivenum;
|
|
27
|
+
|
27
|
28
|
memset ( &target, 0, sizeof ( target ) );
|
28
|
29
|
target.sin.sin_family = AF_INET;
|
29
|
30
|
target.sin.sin_port = htons ( ISCSI_PORT );
|
|
@@ -40,8 +41,10 @@ static int test_dhcp_iscsi_boot ( struct net_device *netdev, char *iscsiname ) {
|
40
|
41
|
dhcp_snprintf ( password, sizeof ( password ),
|
41
|
42
|
find_global_dhcp_option ( DHCP_EB_PASSWORD ) );
|
42
|
43
|
|
|
44
|
+ drivenum = find_global_dhcp_num_option ( DHCP_EB_BIOS_DRIVE );
|
|
45
|
+
|
43
|
46
|
return test_iscsiboot ( initiator_iqn, &target.st, target_iqn,
|
44
|
|
- username, password, netdev );
|
|
47
|
+ username, password, netdev, drivenum );
|
45
|
48
|
}
|
46
|
49
|
|
47
|
50
|
static int test_dhcp_hello ( char *helloname ) {
|