aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2014-06-12 16:05:48 +0100
committerMichael Brown <mcb30@ipxe.org>2014-06-12 17:09:16 +0100
commitd5cf0589940c1cfd5907a2fd8183064ec2244617 (patch)
tree036fcca516b8cc6968b519a19446bcad4f67748d /src/include
parent059adae43429ca407e01cb8b66e9d7dc360740a8 (diff)
downloadipxe-d5cf0589940c1cfd5907a2fd8183064ec2244617.zip
ipxe-d5cf0589940c1cfd5907a2fd8183064ec2244617.tar.gz
ipxe-d5cf0589940c1cfd5907a2fd8183064ec2244617.tar.bz2
[iscsi] Include IP address origin in iBFT
The iBFT includes an "origin" field to indicate the source of the IP address. We use the heuristic of assuming that the source should be "manual" if the IP address originates directly from the network device settings block, and "DHCP" otherwise. This is an imperfect guess, but is likely to be correct in most common situations. Originally-implemented-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/ibft.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ipxe/ibft.h b/src/include/ipxe/ibft.h
index 7337212..35f1510 100644
--- a/src/include/ipxe/ibft.h
+++ b/src/include/ipxe/ibft.h
@@ -197,6 +197,14 @@ struct ibft_nic {
/** NIC global / link local */
#define IBFT_FL_NIC_GLOBAL 0x04
+/** NIC IP address origin */
+#define IBFT_NIC_ORIGIN_OTHER 0x00
+#define IBFT_NIC_ORIGIN_MANUAL 0x01
+#define IBFT_NIC_ORIGIN_WELLKNOWN 0x02
+#define IBFT_NIC_ORIGIN_DHCP 0x03
+#define IBFT_NIC_ORIGIN_RA 0x04
+#define IBFT_NIC_ORIGIN_UNCHANGED 0x0f
+
/**
* iBFT Target structure
*