Checking whether two IPv4 addresses are in the same network


. . .

. . .




            
            Note: Network address = IP address AND netmask