Add setting of ISCSI_PARAM_DISCOVERY_SESS such that the the transport
can distinguish between discovery to normal sessions.

Signed-off-by: Or Gerlitz <[email protected]>
---
 usr/initiator_common.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/usr/initiator_common.c b/usr/initiator_common.c
index e2e87a1..c2071da 100644
--- a/usr/initiator_common.c
+++ b/usr/initiator_common.c
@@ -345,7 +345,7 @@ void iscsi_session_init_params(struct iscsi_session 
*session)
        }
 }
 
-#define MAX_SESSION_PARAMS 35
+#define MAX_SESSION_PARAMS 36
 
 int iscsi_session_set_params(struct iscsi_conn *conn)
 {
@@ -528,6 +528,11 @@ int iscsi_session_set_params(struct iscsi_conn *conn)
                        .param = ISCSI_PARAM_BOOT_TARGET,
                        .value = session->nrec.session.boot_target,
                        .type = ISCSI_STRING,
+               }, {
+                       .param = ISCSI_PARAM_DISCOVERY_SESS,
+                       .value = &session->type,
+                       .type = ISCSI_INT,
+                       .conn_only = 1,
                },
        };
 
-- 
1.7.1

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to