[sr-dev] lcr module and IPv6

Juha Heinanen jh at tutpro.com
Wed Dec 21 14:43:54 CET 2011


Andreas Granig writes:

> Exactly. Sorry, forgot that part. Since the patch supports optional
> surrounding square brackets, the max. length of an IPv6 address is 47.
> 
> So it's either 8*4+7+2 for normal IPv6, like
> "[0000:0000:0000:0000:0000:0000:0000:0000]", or (6*4+5)+1+(4*3+3)+2 for
> tunneling, like "[0000:0000:0000:0000:0000:0000:192.168.100.100]".
> 
> We could argue whether to not support square brackets and just allow
> plain IP format, I've no strong opinions on that. We just wanted to make
> it as flexible as possible.

i cannot comment on storing ipv6 address, because i don't know anything
about them.  one possibility is to add a new column ipv6_addr to lcr_gw
table and take the address from the one which is not empty (if any).

-- juha



More information about the sr-dev mailing list