summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/dhcp.h
diff options
context:
space:
mode:
authorMichael Brown2008-08-11 04:12:38 +0200
committerMichael Brown2008-08-11 04:43:12 +0200
commit5d4839b577e6b6836bd4828ab3ab5d7d2f5ae779 (patch)
tree523176f4313e45eb6bc3ff12de5e282505eb8be6 /src/include/gpxe/dhcp.h
parent[libc] Add missing __attribute__ (( format ( printf ) )) to ssnprintf() (diff)
downloadipxe-5d4839b577e6b6836bd4828ab3ab5d7d2f5ae779.tar.gz
ipxe-5d4839b577e6b6836bd4828ab3ab5d7d2f5ae779.tar.xz
ipxe-5d4839b577e6b6836bd4828ab3ab5d7d2f5ae779.zip
[iSCSI] Add support for mutual CHAP
Allow initiator to verify target authentication using CHAP.
Diffstat (limited to 'src/include/gpxe/dhcp.h')
-rw-r--r--src/include/gpxe/dhcp.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h
index 1c9c49faa..7ce653991 100644
--- a/src/include/gpxe/dhcp.h
+++ b/src/include/gpxe/dhcp.h
@@ -241,6 +241,24 @@ struct dhcp_packet;
*/
#define DHCP_EB_PASSWORD DHCP_ENCAP_OPT ( DHCP_EB_ENCAP, 0xbf )
+/** Reverse username
+ *
+ * This will be used as the reverse username (i.e. the username
+ * provided by the server) for any required authentication. It is
+ * expected that this option's value will be held in non-volatile
+ * storage, rather than transmitted as part of a DHCP packet.
+ */
+#define DHCP_EB_REVERSE_USERNAME DHCP_ENCAP_OPT ( DHCP_EB_ENCAP, 0xc0 )
+
+/** Reverse password
+ *
+ * This will be used as the reverse password (i.e. the password
+ * provided by the server) for any required authentication. It is
+ * expected that this option's value will be held in non-volatile
+ * storage, rather than transmitted as part of a DHCP packet.
+ */
+#define DHCP_EB_REVERSE_PASSWORD DHCP_ENCAP_OPT ( DHCP_EB_ENCAP, 0xc1 )
+
/** iSCSI primary target IQN */
#define DHCP_ISCSI_PRIMARY_TARGET_IQN 201