summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2011-03-03 23:08:50 +0100
committerMichael Brown2011-03-03 23:23:44 +0100
commit960dee6dd0c9c188bc922acab6acb744952f4866 (patch)
tree26272839d6a8dfdc5646b230583043103c061249 /src/include/ipxe
parent[dns] Fix memory leak in settings applicator (diff)
downloadipxe-960dee6dd0c9c188bc922acab6acb744952f4866.tar.gz
ipxe-960dee6dd0c9c188bc922acab6acb744952f4866.tar.xz
ipxe-960dee6dd0c9c188bc922acab6acb744952f4866.zip
[iscsi] Change default initiator IQN
The default initiator IQN is "iqn.2000-09.org.etherboot:UNKNOWN". This is problematic for two reasons: a) the etherboot.org domain (and hence the associated IQN namespace) is not under the control of the iPXE project, and b) some targets (correctly) refuse to allow concurrent connections from different initiators using the same initiator IQN. Solve both problems by changing the default initiator IQN to be iqn.2010-04.org.ipxe:<hostname> if a hostname is set, or iqn.2010-04.org.ipxe:<uuid> if no hostname is set. Explicit initiator IQNs set via DHCP option 203 are not affected by this change. Unfortunately, this change is likely to break some existing configurations, where ACL rules have been put in place referring to the old default initiator IQN. Users may need to update ACLs, or force the use of the old IQN using an iPXE script line such as set initiator-iqn iqn.2000-09.org.etherboot:UNKNOWN or a dhcpd.conf option such as option iscsi-initiator-iqn "iqn.2000-09.org.etherboot:UNKNOWN" Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/iscsi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/ipxe/iscsi.h b/src/include/ipxe/iscsi.h
index 2202a9d87..5d3d73b0c 100644
--- a/src/include/ipxe/iscsi.h
+++ b/src/include/ipxe/iscsi.h
@@ -543,6 +543,8 @@ struct iscsi_session {
/** Transport-layer socket */
struct interface socket;
+ /** Initiator IQN */
+ char *initiator_iqn;
/** Target address */
char *target_address;
/** Target port */
@@ -694,6 +696,7 @@ struct iscsi_session {
/** Target authenticated itself correctly */
#define ISCSI_STATUS_AUTH_REVERSE_OK 0x00040000
-extern const char * iscsi_initiator_iqn ( void );
+/** Default initiator IQN prefix */
+#define ISCSI_DEFAULT_IQN_PREFIX "iqn.2010-04.org.ipxe"
#endif /* _IPXE_ISCSI_H */