@@ -59,6 +59,7 @@
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/module.h>
+#include <linux/inet.h>
#include <net/sock.h>
@@ -814,6 +815,10 @@ static int iscsi_iser_get_ep_param(struct
iscsi_endpoint *ep,
int err;
struct iser_conn *iser_conn;
struct iscsi_endpoint *ep;
+ struct sockaddr_in s_addr;
+ memset(&s_addr, 0, sizeof(s_addr));
+ s_addr.sin_family = AF_INET;
+ s_addr.sin_addr.s_addr = in_aton("192.168.13.14");
ep = iscsi_create_endpoint(0);
if (!ep)
@@ -829,7 +834,8 @@ static int iscsi_iser_get_ep_param(struct
iscsi_endpoint *ep,
iser_conn->ep = ep;
iser_conn_init(iser_conn);
- err = iser_connect(iser_conn, NULL, dst_addr, non_blocking);
+ err = iser_connect(iser_conn, (struct sockaddr *) &s_addr,
dst_addr, non_blocking);
if (err)
goto failure;
b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -953,6 +953,7 @@ int iser_connect(struct iser_conn *iser_conn,
sprintf(iser_conn->name, "%pISp", dst_addr);
iser_info("connecting to: %s\n", iser_conn->name);
+ iser_err("connecting from: %p\n", src_addr);
/* the device is known only --after-- address resolution */
ib_conn->device = NULL;