diff options
| author | Jose Luis Duran <jlduran@gmail.com> | 2022-02-24 01:43:27 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2022-02-27 16:12:18 +0000 |
| commit | 7ca6daff6a43f11fb93831e0970fb8bfb5d0833a (patch) | |
| tree | 713ae1993aca17479c47fe5eaf7626d49863de24 /lib/libefivar | |
| parent | b782b7884c8aa19cb2dcb6ece6909e9f05173d72 (diff) | |
Diffstat (limited to 'lib/libefivar')
| -rw-r--r-- | lib/libefivar/efivar-dp-parse.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libefivar/efivar-dp-parse.c b/lib/libefivar/efivar-dp-parse.c index 82f9c6027d32..02c32971f4c6 100644 --- a/lib/libefivar/efivar-dp-parse.c +++ b/lib/libefivar/efivar-dp-parse.c @@ -2725,7 +2725,14 @@ DevPathFromTextiSCSI ( ISCSIDevPath->LoginOption = (UINT16) Options; - ISCSIDevPath->NetworkProtocol = (UINT16) StrCmp (ProtocolStr, "TCP"); + if (StrCmp (ProtocolStr, "TCP") == 0) { + ISCSIDevPath->NetworkProtocol = 0; + } else { + // + // Undefined and reserved. + // + ISCSIDevPath->NetworkProtocol = 1; + } return (EFI_DEVICE_PATH_PROTOCOL *) ISCSIDevPath; } |
