Split ipv6 functions out from ipv4.c