[SR-Users] ip address fields

Richard Fuchs rfuchs at sipwise.com
Mon Oct 22 20:34:07 CEST 2012


On 10/22/12 14:19, Juha Heinanen wrote:

> to me it makes sense to store addresses only in canonical format to
> database in order to make sure that address comparison can be made
> uniquely.

Using the string representation of an address for anything other than to
provide a human readable version of it is not a good idea. That's true
not only for IPv6 addresses: http://3239475010/ (doesn't work in IE IIRC).

If you want to compare addresses in code, use raw 128-bit addresses.

cheers

-------------- 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-users/attachments/20121022/f84dd8c4/attachment.pgp>


More information about the sr-users mailing list