Function IPv4.isInSubnet

Returns whether our IP and host are in the same network

bool isInSubnet (
  IPv4 host,
  IPv4 mask
) nothrow @nogc @safe const;