/* Return the cast type (Unicast/Broadcast) specific to an interface. All the addresses are host byte ordered. */
INTN Ip4GetNetCast(IN IP4_ADDR IpAddr, IN IP4_INTERFACE *IpIf)
/* Return the cast type (Unicast/Broadcast) specific to an interface. All the addresses are host byte ordered. */
INTN Ip4GetNetCast(IN IP4_ADDR IpAddr, IN IP4_INTERFACE *IpIf)
{
  if (IpAddr == IpIf->Ip) {
    return IP4_LOCAL_HOST;
  } else if (IpAddr == IpIf->SubnetBrdcast) {
    return IP4_SUBNET_BROADCAST;
  } else if (IpAddr == IpIf->NetBrdcast) {
    return IP4_NET_BROADCAST;
  }
  return 0;
}