/* Check whether one IP address equals the other. */
BOOLEAN TcpIsIpEqual(IN EFI_IP_ADDRESS *Ip1, IN EFI_IP_ADDRESS *Ip2, IN UINT8 Version)
/* Check whether one IP address equals the other. */
BOOLEAN TcpIsIpEqual(IN EFI_IP_ADDRESS *Ip1, IN EFI_IP_ADDRESS *Ip2, IN UINT8 Version)
{
  ASSERT ((Version == IP_VERSION_4) || (Version == IP_VERSION_6));
  if (Version == IP_VERSION_4) {
    return (BOOLEAN)(Ip1->Addr[0] == Ip2->Addr[0]);
  } else {
    return (BOOLEAN)EFI_IP6_EQUAL (&Ip1->v6, &Ip2->v6);
  }
}