/* Check whether the incoming IPv6 address in IaAddr is one of the maintained addresses in the IA control block. */
BOOLEAN Dhcp6AddrIsInCurrentIa(IN EFI_DHCP6_IA_ADDRESS *IaAddr, IN EFI_DHCP6_IA *CurrentIa)
/* Check whether the incoming IPv6 address in IaAddr is one of the maintained addresses in the IA control block. */
BOOLEAN Dhcp6AddrIsInCurrentIa(IN EFI_DHCP6_IA_ADDRESS *IaAddr, IN EFI_DHCP6_IA *CurrentIa)
{
  UINT32  Index;
  ASSERT (IaAddr != NULL && CurrentIa != NULL);
  for (Index = 0; Index < CurrentIa->IaAddressCount; Index++) {
    if (EFI_IP6_EQUAL (&IaAddr->IpAddress, &CurrentIa->IaAddress[Index].IpAddress)) {
      return TRUE;
    }
  }
  return FALSE;
}