[sr-dev] lcr module and IPv6

Andreas Granig agranig at sipwise.com
Wed Dec 21 14:33:25 CET 2011


Hi Juha,

On 12/21/2011 02:11 PM, Juha Heinanen wrote:
> based on the patch i got impression that it uses current ip_addr column
> of lcr_gw table to store also ipv6 address?  if so, then also the schema
> file would need to be changed.

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.

Should I adapt the patch to reflect the schema change as well, or could
you maybe change it manually in lib/srdb1/schema/lcr_gw.xml?

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20111221/c876b7df/attachment.pgp>


More information about the sr-dev mailing list