some ipv6 parsing functionality