audk/MdePkg/Library/UefiDevicePathLib
Jiaxin Wu 7571a1c191 MdePkg/UefiDevicePathLib: Refine the DevPathFromTextiSCSI protocol parsing
For current iSCSI protocol parsing, UINT16 truncation may be happened. Since
the Spec already have declaimed that 0 is TCP Protocol and 1+ is reserved, the
parsing can be refined as below:

  if (StrCmp (ProtocolStr, L"TCP") == 0) {
    ISCSIDevPath->NetworkProtocol = 0;
  } else {
    //
    // Undefined and reserved.
    //
    ISCSIDevPath->NetworkProtocol = 1;
  }

Cc: Warner Losh <imp@bsdimp.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Warner Losh <imp@bsdimp.com>
2017-03-30 11:32:24 +08:00
..
DevicePathFromText.c MdePkg/UefiDevicePathLib: Refine the DevPathFromTextiSCSI protocol parsing 2017-03-30 11:32:24 +08:00
DevicePathToText.c MdePkg: Fix spec mismatch in string representation of EMMC dev node 2016-11-14 11:08:41 +08:00
DevicePathUtilities.c MdePkg UefiDevicePathLib: Validate before touch input buffer. 2016-11-09 17:49:17 +08:00
UefiDevicePathLib.c Add 4 APIs to DevicePathLib: ConvertDeviceNodeToText, ConvertDevicePathToText, ConvertTextToDeviceNode and ConvertTextToDevicePath. 2013-07-26 03:00:21 +00:00
UefiDevicePathLib.h MdePkg: Add bluetooth devicepath handling in device path library. 2015-05-06 02:41:37 +00:00
UefiDevicePathLib.inf MdePkg: Add UEFI2.5 Ramdisk device path definition 2015-07-08 05:49:07 +00:00
UefiDevicePathLib.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00
UefiDevicePathLibOptionalDevicePathProtocol.c Add 4 APIs to DevicePathLib: ConvertDeviceNodeToText, ConvertDevicePathToText, ConvertTextToDeviceNode and ConvertTextToDevicePath. 2013-07-26 03:00:21 +00:00
UefiDevicePathLibOptionalDevicePathProtocol.inf MdePkg/UefiDevicePathLib:Fix link error due to missing RamDisk GUIDs 2015-07-09 08:51:54 +00:00
UefiDevicePathLibOptionalDevicePathProtocol.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00