Rename functions to ipv4 or ipv6, begin ipv6 code
Make ip comparison binary safe