2. Update the minimum length to 4 in VFR file for target/initiator name for requiring prefix “iqn.”
3. Fix the 64bit unalignment exception at IPF due to Rsdt is 32 bit alignment but OemTableId field of Rsdt is UINT64 type.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9896
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
Vfr file for iSCSI config.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
help = STRING_TOKEN(STR_ISCSI_CONFIG_INIT_NAME_HELP),\r
flags = INTERACTIVE,\r
key = KEY_INITIATOR_NAME,\r
- minsize = 8,\r
+ minsize = ISCSI_NAME_IFR_MIN_SIZE,\r
maxsize = ISCSI_NAME_IFR_MAX_SIZE,\r
endstring;\r
\r
help = STRING_TOKEN(STR_ISCSI_TARGET_NAME),\r
flags = INTERACTIVE,\r
key = KEY_TARGET_NAME,\r
- minsize = 8,\r
+ minsize = ISCSI_NAME_IFR_MIN_SIZE,\r
maxsize = ISCSI_NAME_IFR_MAX_SIZE,\r
endstring;\r
\r
/** @file\r
Define NVData structures used by the iSCSI configuration component\r
\r
-Copyright (c) 2004 - 2007, Intel Corporation.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
// Vfr has a limit on the size, it's 255 bytes.\r
//\r
+#define ISCSI_NAME_IFR_MIN_SIZE 4\r
#define ISCSI_NAME_IFR_MAX_SIZE 223\r
\r
#define IP_MIN_SIZE 7\r
\r
#pragma pack(1)\r
typedef struct {\r
- CHAR16 InitiatorName[ISCSI_NAME_IFR_MAX_SIZE];\r
+ CHAR16 InitiatorName[ISCSI_NAME_MAX_SIZE];\r
\r
UINT8 Enabled;\r
\r
CHAR16 SubnetMask[IP4_STR_MAX_SIZE];\r
CHAR16 Gateway[IP4_STR_MAX_SIZE];\r
\r
- CHAR16 TargetName[ISCSI_NAME_IFR_MAX_SIZE];\r
+ CHAR16 TargetName[ISCSI_NAME_MAX_SIZE];\r
CHAR16 TargetIp[IP4_STR_MAX_SIZE];\r
UINT16 TargetPort;\r
CHAR16 BootLun[ISCSI_LUN_STR_MAX_LEN];\r
/** @file\r
Implementation for iSCSI Boot Firmware Table publication.\r
\r
-Copyright (c) 2004 - 2009, Intel Corporation.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
Header->OemId[4] = 'L';\r
\r
CopyMem (Header->OemId, OemId, sizeof (Header->OemId));\r
- Header->OemTableId = *OemTableId;\r
+ CopyMem (&Header->OemTableId, OemTableId, sizeof (UINT64));\r
}\r
\r
/**\r