mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
[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>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user