ipv6: fix incorrect type in declaration