summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-30 18:00:30 -0700
committerMike Christie <michaelc@cs.wisc.edu>2014-11-14 14:12:08 -0600
commitdefd640862dd65a4dfc89288e43e7ccbdf002733 (patch)
tree7f135af303e8bae724ba6c996b9c691bc6ffb7a3 /include
parent4959a89f421fdebc521f48003a79c2161e59d192 (diff)
downloadopen-iscsi-defd640862dd65a4dfc89288e43e7ccbdf002733.tar.gz
fwparam_ibft: Check iBFT target and NIC flags
Check the iBFT NIC and Target flags for valid boot. Since some adapters correctly set Bit 0 and others set Bit 1 for NICs, allow either value there. Signed-off-by: Lee Duncan <lduncan@suse.com>
Diffstat (limited to 'include')
-rw-r--r--include/fw_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fw_context.h b/include/fw_context.h
index 6a7ec1a..44053d8 100644
--- a/include/fw_context.h
+++ b/include/fw_context.h
@@ -44,6 +44,7 @@ struct boot_context {
char boot_target[BOOT_NAME_MAXLEN];
/* target settings */
+ int target_flags;
int target_port;
char targetname[TARGET_NAME_MAXLEN + 1];
char target_ipaddr[NI_MAXHOST];
@@ -57,6 +58,7 @@ struct boot_context {
char initiatorname[TARGET_NAME_MAXLEN + 1];
/* network settings */
+ int nic_flags;
enum ibft_ip_prefix_origin origin;
char dhcp[NI_MAXHOST];
char iface[IF_NAMESIZE];