factorize parsing function to work with hexadecimal
to rely on internal repr
ipv6 support

more

wip

move to int32
check bound of ipv6 comp