Use memcmp for ipv4 as well