Updated to use asynchronous operation model for iSCSI requests
Added CHAP authentication
This commit is contained in:
@@ -16,6 +16,8 @@ static int test_dhcp_aoe_boot ( struct net_device *netdev,
|
||||
|
||||
static int test_dhcp_iscsi_boot ( struct net_device *netdev, char *iscsiname ) {
|
||||
char *initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
|
||||
char *username = "joe";
|
||||
char *password = "secret";
|
||||
char *target_iqn;
|
||||
union {
|
||||
struct sockaddr_in sin;
|
||||
@@ -33,7 +35,8 @@ static int test_dhcp_iscsi_boot ( struct net_device *netdev, char *iscsiname ) {
|
||||
}
|
||||
inet_aton ( iscsiname, &target.sin.sin_addr );
|
||||
|
||||
return test_iscsiboot ( initiator_iqn, &target.st, target_iqn, netdev );
|
||||
return test_iscsiboot ( initiator_iqn, &target.st, target_iqn,
|
||||
username, password, netdev );
|
||||
}
|
||||
|
||||
static int test_dhcp_hello ( char *helloname ) {
|
||||
|
||||
Reference in New Issue
Block a user