From defd640862dd65a4dfc89288e43e7ccbdf002733 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Thu, 30 Oct 2014 18:00:30 -0700 Subject: 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 --- include/fw_context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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]; -- cgit v1.2.1