ipv6 partial implementation with some errors