Files
system76-edk2/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.inf
Nickle Wang 25a6745fe8 RedfishPkg/RedfishDiscoverDxe: fix netmask check issue
- Add NTOHL() for coverting IP address from EFI_IPv4_ADDRESS to
IP4_ADDR so that IP4_IS_VALID_NETMASK() return correct value.
- Add DumpIpv4Address() in RedfishDebugLib and print IP address
when invalid IP or subnet mask address is detected.

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Reviewed-by: Igor Kulchytskyy  <igork@ami.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
2023-07-26 00:49:45 +00:00

58 lines
1.7 KiB
INI

## @file
# Implementation of EFI_REDFISH_DISCOVER_PROTOCOL interfaces.
#
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x0001001b
BASE_NAME = RedfishDiscoverDxe
FILE_GUID = 28A76FE5-43D7-48A3-9714-C1B7BDD6DFB6
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
ENTRY_POINT = RedfishDiscoverEntryPoint
UNLOAD_IMAGE = RedfishDiscoverUnload
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
NetworkPkg/NetworkPkg.dec
RedfishPkg/RedfishPkg.dec
[Sources]
ComponentName.c
RedfishDiscoverDxe.c
RedfishSmbiosHostInterface.c
RedfishDiscoverInternal.h
[LibraryClasses]
BaseLib
BaseMemoryLib
DebugLib
MemoryAllocationLib
PrintLib
RedfishDebugLib
RestExLib
UefiLib
UefiBootServicesTableLib
UefiDriverEntryPoint
[Protocols]
gEfiRestExServiceBindingProtocolGuid ## Consuming
gEfiRestExProtocolGuid ## Consuming
gEfiTcp4ServiceBindingProtocolGuid ## Consuming
gEfiTcp4ProtocolGuid ## Consuming
gEfiTcp6ServiceBindingProtocolGuid ## Consuming
gEfiTcp6ProtocolGuid ## Consuming
gEfiRedfishDiscoverProtocolGuid ## Prodcuing
gEfiSmbiosProtocolGuid ## Consuming
gEfiDriverBindingProtocolGuid ## Consuming
[Pcd]
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDiscoverAccessModeInBand ## CONSUMES