[sr-dev] IPv4 and IPv6 binary comparison
Daniel-Constantin Mierla
miconda at gmail.com
Thu Apr 28 12:10:16 CEST 2011
On 4/28/11 12:02 PM, Iñaki Baz Castillo wrote:
> 2011/4/28 Iñaki Baz Castillo<ibc at aliax.net>:
>> Obviously under IPv6 binary comparison is needed (this is what my
>> function does).
> Let me a related question:
>
> An IPv6 looks like "1080::8:800:200C:417A", but when using it in a URI
> it must be set as IPv6-reference (between [ ]):
>
> [1080::8:800:200C:417A]
>
>
> Imagine I do:
>
> $rd = "1080::8:800:200C:417A";
> $dd = "1080::8:800:200C:417A";
> $rd = "[1080::8:800:200C:417A]";
> $dd = "[1080::8:800:200C:417A]";
>
> Would SR handle correctly all these cases?
you have to give the proper format, enclosed in square brackets. The
assignments above are just string value settings.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the sr-dev
mailing list