added ipv4 class check prototype!