convert masked ip to unsigned int, then compare