|
@@ -14,7 +14,7 @@ static int test_dhcp_aoe_boot ( struct net_device *netdev,
|
14
|
14
|
return test_aoeboot ( netdev, aoename, drivenum );
|
15
|
15
|
}
|
16
|
16
|
|
17
|
|
-static int test_dhcp_iscsi_boot ( char *iscsiname ) {
|
|
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
|
19
|
char *target_iqn;
|
20
|
20
|
union {
|
|
@@ -33,7 +33,7 @@ static int test_dhcp_iscsi_boot ( char *iscsiname ) {
|
33
|
33
|
}
|
34
|
34
|
inet_aton ( iscsiname, &target.sin.sin_addr );
|
35
|
35
|
|
36
|
|
- return test_iscsiboot ( initiator_iqn, &target.st, target_iqn );
|
|
36
|
+ return test_iscsiboot ( initiator_iqn, &target.st, target_iqn, netdev );
|
37
|
37
|
}
|
38
|
38
|
|
39
|
39
|
static int test_dhcp_hello ( char *helloname ) {
|
|
@@ -97,7 +97,7 @@ static int test_dhcp_boot ( struct net_device *netdev, char *filename ) {
|
97
|
97
|
if ( strncmp ( filename, "aoe:", 4 ) == 0 ) {
|
98
|
98
|
return test_dhcp_aoe_boot ( netdev, &filename[4] );
|
99
|
99
|
} else if ( strncmp ( filename, "iscsi:", 6 ) == 0 ) {
|
100
|
|
- return test_dhcp_iscsi_boot ( &filename[6] );
|
|
100
|
+ return test_dhcp_iscsi_boot ( netdev, &filename[6] );
|
101
|
101
|
} else if ( strncmp ( filename, "hello:", 6 ) == 0 ) {
|
102
|
102
|
return test_dhcp_hello ( &filename[6] );
|
103
|
103
|
} else if ( strncmp ( filename, "http:", 5 ) == 0 ) {
|