diff options
| author | Michael Brown | 2006-11-28 01:29:02 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-11-28 01:29:02 +0100 |
| commit | 3f0b4d9ed8e419bfd0803e12004a1185be3c042a (patch) | |
| tree | 5dcf1e12ca93b30c50a16b3cff2472ef500a8262 /src/tests/dhcptest.c | |
| parent | Marked memcmp/strcmp as "pure" functions, to allow gcc to optimise (diff) | |
| download | ipxe-3f0b4d9ed8e419bfd0803e12004a1185be3c042a.tar.gz ipxe-3f0b4d9ed8e419bfd0803e12004a1185be3c042a.tar.xz ipxe-3f0b4d9ed8e419bfd0803e12004a1185be3c042a.zip | |
Updated to use asynchronous operation model for iSCSI requests
Added CHAP authentication
Diffstat (limited to 'src/tests/dhcptest.c')
| -rw-r--r-- | src/tests/dhcptest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c index 0a7ef074d..be219b205 100644 --- a/src/tests/dhcptest.c +++ b/src/tests/dhcptest.c @@ -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 ) { |
