|
@@ -16,8 +16,8 @@ static int test_dhcp_aoe_boot ( struct net_device *netdev,
|
16
|
16
|
|
17
|
17
|
static int test_dhcp_iscsi_boot ( struct net_device *netdev, char *iscsiname ) {
|
18
|
18
|
char *initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
|
19
|
|
- char *username = "joe";
|
20
|
|
- char *password = "secret";
|
|
19
|
+ char username[32];
|
|
20
|
+ char password[32];
|
21
|
21
|
char *target_iqn;
|
22
|
22
|
union {
|
23
|
23
|
struct sockaddr_in sin;
|
|
@@ -35,6 +35,11 @@ static int test_dhcp_iscsi_boot ( struct net_device *netdev, char *iscsiname ) {
|
35
|
35
|
}
|
36
|
36
|
inet_aton ( iscsiname, &target.sin.sin_addr );
|
37
|
37
|
|
|
38
|
+ dhcp_snprintf ( username, sizeof ( username ),
|
|
39
|
+ find_global_dhcp_option ( DHCP_EB_USERNAME ) );
|
|
40
|
+ dhcp_snprintf ( password, sizeof ( password ),
|
|
41
|
+ find_global_dhcp_option ( DHCP_EB_PASSWORD ) );
|
|
42
|
+
|
38
|
43
|
return test_iscsiboot ( initiator_iqn, &target.st, target_iqn,
|
39
|
44
|
username, password, netdev );
|
40
|
45
|
}
|