summaryrefslogtreecommitdiff
path: root/usr/flashnode.h
diff options
context:
space:
mode:
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>2013-07-09 08:17:14 -0400
committerMike Christie <michaelc@cs.wisc.edu>2013-09-11 15:56:28 -0700
commit3256b93ee3025bf76757001ff3d24914c4c4af28 (patch)
treeea215b37abd8ccf4d4662ab82a932c93a7479b57 /usr/flashnode.h
parentbf399411ed8a2f4047f928653ac8dd02ffd0f662 (diff)
downloadopen-iscsi-3256b93ee3025bf76757001ff3d24914c4c4af28.tar.gz
iscsiadm: Correctly check for invalid hostno and flashnode index
In host mode, correctly compare for invalid hostno and flashnode index. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Diffstat (limited to 'usr/flashnode.h')
-rw-r--r--usr/flashnode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/flashnode.h b/usr/flashnode.h
index c1de9cc..2950fb5 100644
--- a/usr/flashnode.h
+++ b/usr/flashnode.h
@@ -26,6 +26,8 @@
#include "config.h"
#include "auth.h"
+#define MAX_FLASHNODE_IDX UINT_MAX
+
typedef enum portal_type {
IPV4,
IPV6,